Tweaked Gruntfile.js to allow serving of the client app
First draft of user authorization checks during state change. A lot of rework needs to be done, this is just A PROOF OF CONCEPT.
Tweaked login.html to get rid of unnecessary stuff
Added comments about user's privileges and authorization workflow and implementation
First draft of nested states structure. Added draft for authorization service to hint how to check for user's permissions before activating a state
Basic login has been setup
Added logoutButton directive. Fixed a bug in AuthorizationService that returned a null reference for currentUser even when the user was correctly validated. There is an issue with logoutButton directive styling
Fixed a bug in sparkline and easy_pie_chart directive
Fixed sparkline and easy_pie_charts directive bug. Fixed AuthorizationService logout bug. In case of error no evidence was left in the console and the user wasn't redirected to login. validateUser() semantics is still unclear; issue opened with the author.
Fixed AuthorizationService#getExpiry. It now returns the expiry datetime. If no user is defined it returns now