Fix Invitations

no issue
- added `invited-pending` when resending invitation
- promise chain was missing a return statement
- email error was masked and front end showed success notification
Fix lazy loading of settings

Closes #3281

- Add the missing return to populateDefault
- Wrap defaultSetting in [] when passing to readSettingsResult
- Populate default value of dbHash in parseDefaultSettings
- Modify migrations.init to only load databaseVersion for export_spec test
- Fix spacing in test util file and null reference error in test
- Uncomment user tests (but add .skip) and remove settings from testUtils.setup()
Fixup signin and signout

No Issue
- Move authentication related handlers to the Application route.
- Switch Sign Out from a button to a link.  Use the signout route
  to handle invalidating the session and redirecting instead of
  an action from a button.
- Clear error messages on signin page when pressing log in button.
- Errors are now always shown on sign in screen and a success
  notification is shown after sign out.
- Update functional tests.
Ghost instance not needed in update check test

Refs #3424, Refs #3444
- API and test suite refactoring triggered a conflict with
  the way update_check_spec.js was written.  Using a running
  copy of Ghost is no longer needed in those tests so it
  was removed.
Settings screens redirect for certain roles

Closes #3291
- Adds redirects based on roles as defined in the case
- Adds new mixin `CurrentUserSettings`
- For authors, all settings pages redirect to `users/self`
- For editors, all settings pages other than specific users redirect to `users`. Any user that is not self or an author redirects to `users`
Merge pull request #3424 from jgable/fixSettings

Fix lazy loading of settings
Merge pull request #3444 from sebgie/fix-invitations

Fix Invitations
Merge pull request #3448 from jaswilli/update-check-test

Ghost instance not needed in update check test
Uncommenting fixed tests
Merge pull request #3447 from jaswilli/auth

Fixup signin and signout
Merge pull request #3416 from alarobric/case_3291

Settings screens redirect for certain roles
Properly remove email notification on signout.

no ref
- Calls notifications.clear() on signout
Disable user settings autocomplete in Chrome

Closes #3271

- Adds 2 hidden inputs at the top start of the form that trick chrome into filling those, leaving out the rest.
User API ability to filter users by role

refs #3446

- This only covers the API changes needed for #3446
Disable autocomplete for setup & signup screens

No issue

- Adds 2 hidden inputs at the top start of the form that trick chrome into filling those, leaving out the rest.
Stop validation error notification stack

closes #3383
- Calls closePassive() if a new validation error is thrown to display
only the latest validation error
Merge pull request #3455 from ErisDS/issue-3446

User API ability to filter users by role
Transfer ownership end point

closes #3426
- added transfer ownership endpoint
- added owner to roles.permissible
- manually removed owner from roles.browse
- removed hard coded author role
- fixed tests that were passing due to hard coded author role
- added testUtils.setup(‚roles‘)
Users API advanced browsing

closes #3085
- active and invited include multiple statuses when fetching
- adjusted data generator
Perform a hard refresh upon signout.

Closes #3458.