Waterbury pays $2.3M for massive factory building with eye toward redevelopment