Template::Controller: automatic hashnav redirect for templates

When viewing a non-external template, the Template Controller now
redirects to hashnav path for requests that did not come from the
RapidApp JS/AJAX client (i.e. direct browser requests). This is the same
logic that is already in place within RapidApp 'Modules' (i.e. grids,
etc)