Use app.router to provide application routes

Authenticate and redirect users using app.router