Simple authentication and client-side sessions for AngularJs apps using ui-router.