Each town shall through its board of education maintain the control of all the public schools within its limits and for this purpose shall be a school district and shall have all the powers and duties of school districts, except so far as such powers and duties are inconsistent with the provisions of this chapter.