when did boston become the capital of massachusetts