Blog post on authorization in angular and ui-router