Manage Users

Summary:
* revises users.html to match Design Framework
https://docs.google.com/a/ushahidi.com/document/d/1JnfDERRFBV6suR0lglf76Fu9uVnfhs0PjwiGrtWrHDU/edit#heading=h.fvsdg5y0xng0

Admin can: (after the below todos are complete)
  * select users
  * delete users
  * change user's role
  * edit user by clicking user name
  * add user by clicking "add user"

Todo:
* `ng-model` on checkboxes is not working, has to do with scope. The intended behaviour is checking user enables "delete" and "change role"
* clicking user name needs to route to edit view (dev task?)
* clicking "add user" button needs to route to add user form (dev task?)

Fixes T1193

Test Plan:
* check layout
* need help with todos

Reviewers: rjmackay, brandonrosage, shadowhand

Reviewed By: shadowhand

Subscribers: spaudanjo, sebm90, dkobia

Maniphest Tasks: T1193

Differential Revision: https://phabricator.ushahidi.com/D558
Bug Fixes

Summary:
Fixes T1232
Fixes T1233
Fixes T1234

Test Plan: * compare changes to bug task to see if fixed

Reviewers: rjmackay, shadowhand

Reviewed By: shadowhand

Subscribers: brandonrosage

Maniphest Tasks: T1232, T1233, T1234

Differential Revision: https://phabricator.ushahidi.com/D566
adds "edit" to post-details ui

Summary:
once editing functionality is landed, clicking edit will allow inline editing or go to separate edit view (need final design decision on this)

Fixes T1190
Blocked by T1134 - editing functionality

Test Plan: * check layout

Reviewers: brandonrosage, spaudanjo, rjmackay, shadowhand

Reviewed By: shadowhand

Subscribers: sebm90, srutto, dkobia

Maniphest Tasks: T1190

Differential Revision: https://phabricator.ushahidi.com/D559
Add post edit form, fixes T1231

Summary:
- renamed the post form template: create -> modify
- updated locale to use the same terms for create and edit
- add post edit controller
- tweak template to work with both
- misc fixes to make it all work

Test Plan: http://ushahidi.dev/posts/edit/1

Reviewers: rjmackay, spaudanjo, aMoniker, seth

Reviewed By: seth

Subscribers: vladimir, seth

Maniphest Tasks: T1231

Differential Revision: https://phabricator.ushahidi.com/D568
WIP: Hook up user profile editing

Summary:
* User can click on "Edit Profile" in user menu
  * also, the actual username is now shown in the usermenu instead of an placeholder
* She is then able to see her profile data like email, username and realname
* When clicking on the "Edit" button, she is able to edit and save:
  * email
  * realname
  * [[password]]
    * [[with confirmation]]

* We introduce the xeditable plugin for this
  * allows to define inline editable forms
  * see: http://vitalets.github.io/angular-xeditable/
  * copy the styles of this plugin to sass/plugins/_xeditable.scss

* Show a spinner while data is saved
  * added a generated custom spin.js file under server/www/js/
    * created with http://fgnass.github.io/spin.js/
  * add a service for showing and hiding the spinner

* add a notification service
  * internally, it currently uses alert boxes
  * we should replace this with a more advanced solution like on of these plugins:
    * https://github.com/cgross/angular-notify
    * https://github.com/jirikavi/AngularJS-Toaster

* add a session service
  * use localstorage for saving session data between page reloads internally
  * loads stored values from localstorage at startup
  * updates the localstorage when saving session values
  * caches values for reading without repeated access to localstorage
  * places in the code base that used localstorage directly before are using now this session service

* [[Gravatar]]

* wrote specs
  * unit specs
    * test/unit/users/services/endpoints/user-endpoint-spec.js
    * [[test/unit/users/controllers/user-profile-controller-spec.js]]
    * [[test/unit/services/session-spec.js]]
  * e2e spec
    * [[test/e2e/users-e2e-spec.js]]

Fix T1134

Test Plan:
* check the described feature directly in the browser
  * against real backend
* run specs
  * gulp tdd
* run e2e specs
  * protractor test/protractor-conf.js

Reviewers: shadowhand, aMoniker, rjmackay, seth

Maniphest Tasks: T1134

Differential Revision: https://phabricator.ushahidi.com/D557
WIP: show gravatar at users menu
replace realname with fullname
WIP: T1134 kick out global spinner service again and use submit button spinner with css class 'fa-spin'
WIP: T1134 kick out global spinner service again and use submit button spinner with css class 'fa-spin'
fix lints
fix 'editable-empty' css bug