Added some domain constraints, and generated static controllers and
views.