Setup authentication and bootstrap for views