Move nested models to nested classes.
Generate controllers with hierarchy.
Write first tests.