By 1640, the town's theocratic government and nine-square grid plan were in place, and the town was renamed Newhaven from Quinnipiac. New Haven Colony was separated from the Connecticut Colony which was located where?