Meanwhile, the revolutionaries expelled British officials from the 13 states, and declared themselves an independent nation on July 4, 1776