Reset email form value on success

closes #3663
- Set value of email input as nil string
Switch middleware order to result in proper error

fixes #3694

- Split the res.isAdmin check out into it's own thing because we need to detect whether we are in the admin, before everything else
Sends test email to the person who clicked on the button

Closes #3649

* Small refactor of the api route for email test. We no longer need to look up the email in the settings
* Added a user model lookup based on context to the test email method.
Close invite user modal immediately after submit.

Closes #3672, Closes #3673, Closes #3680
- Close and reset modal immediately after submit instead
  of waiting until after processing has finished.
Merge pull request #3702 from ErisDS/issue-3694

Switch middleware order to result in proper error
Merge pull request #3705 from wjake/issue-3663

Reset forgotten form on success
Merge pull request #3704 from javorszky/iss3649

Sends test email to the person who clicked on the button
Merge pull request #3706 from jaswilli/invite-fixup

Close invite user modal immediately after submit.
Error if user has already been invited

closes #3681
Merge pull request #3708 from felixrieseberg/iss3681-2

Error if user has already been invited
Updating Casper to latest
Version bump to 0.5.0-rc3
Fix 'broken' debug tools template

closes #3715
- Includes wrapper class for @pauladamdavis css
Merge pull request #3717 from felixrieseberg/iss3715

Fix 'broken' debug tools template
Fix rss content's url to the RSS feed

fixes #3719

- correctly sets the path to the RSS feed for tags and authors
Fix wrong author slug on user settings page
MU Importer - Assign objects correctly

fixes #3716

- change the importer to not override any user details
- only set published_by if it is not already set
- import users before anything else
- process the import and map user ids to existing users
- test fix - owner should have owner role
- test fix - catch invalid success in importer
Merge pull request #3726 from ErisDS/issue-3716

Fixed MU Importer
Merge pull request #3723 from JohnONolan/wrong-slug

Fix wrong author slug on user settings page
Ensure PSM author is reset when changing posts.