AngularJS example showing how to create a login state driven app.