Add validation to invite new user form.

Closes #3246
- Add a UserValidator to the validation engine that runs a set
  of validations based on the user status.
- Added validations for invited users and active users.
Re-add back to Users button and make whole user item a link.
Check the end of notification fade-out animation
Use bookshelf's model registry plugin

Refs #2170

This removes the circular dependency problem from our models thanks to
https://github.com/tgriesser/bookshelf/issues/181
- add the registry plugin
- switch all models and collections to be registered
- switch relationships to be defined using a string, which calls from the registry
Merge pull request #3247 from PaulAdamDavis/user-link-links

Make user list links and add "< Users" button
Merge pull request #3248 from jaswilli/issue-3246

Add validation to invite new user form.
Merge pull request #3256 from PaulAdamDavis/fix-notification-flicker

Check the end of notification fade-out animation
Merge pull request #3258 from ErisDS/model-registry

Use bookshelf's model registry plugin
Some sweets for my sweets
Merge pull request #3263 from joshk/patch-1

Some sweets for my sweets
sugar for my sugar
Merge pull request #3265 from joshk/patch-2

sugar for my sugar
Add status invited-pending for users

no issue
- added status invited-pending for invited users where sending the
invitation email failed
- removed console.log() from authentication.js