finalized tpl Application controller, added better handling of route callbacks and 404s. better chaining for router methods