Changes to the way models are treated in templates
Removed a stray console.log
Added a route_for function that returns a route for a given function (if
it exists)