who was president of the us during revolutionary war?