Major overhaul of models, controllers and routes. Basically digested prim engine into prim resources.