Walpole, Massachusetts in the Revolution