I. Any local legislative body may establish a planning board, the members of which shall be residents of the municipality. II. Any local legislative body may establish any or all of the following: a heritage commission, a historic district commission, an agricultural commission, and a housing commission. III. [Repealed.] IV. Every zoning ordinance adopted by a local legislative body shall include provisions for the establishment of a zoning board of adjustment. Members of the zoning board of adjustment shall be either elected or appointed, subject to the provisions of RSA 673:3. V. [Repealed.]