Set up angular ui.router for smarter routing