Before a building is begun the owner of the property shall apply to the inspector for a permit to build. This permit shall be given in writing and shall contain a provision that the building shall be constructed according to the requirements of this chapter. This requirement shall not prevent cities or towns from requiring submission of plans to the city engineer.