VERGENNES — Almost 200 years ago, Commodore Thomas MacDonough won a crucial naval battle in the War of 1812 that drove the British — the world’s greatest naval force at the time — from the Plattsburgh, N.Y., battle site back into Canada, allowing the United States to retain a larger piece of northern territory when a peace treaty was signed two months later.