Section 2. A town may in its corporate capacity sue and be sued by its name, and may appoint necessary agents therefor.