Inspired by http://www.jonsamwell.com/url-route-authorization-and-security-in-angular/
Define factory User with two methods
- User.isUserLoggedIn() returning true/false
- User.getCurrentUserRoles(function(roles) {})
Define CSS class .hidden to hide elements