Created passport hook, pulled all custom logic out of bootstrap and routes.