who was president of the us during the revolutionary war?