British colonies to early republic