The municipalities of Waterbury and Naugatuck have each approved a purchase agreement deal with Bluewater Property Group, a hopeful developer of the next Amazon distribution center in the state. But the developer must spend millions to determine if they can build.