Made app available in view templates and registered router/request with it