Update editor markdown tests

closes #1299

- update tests to check for full strings with spaces now that this is no
  longer an issue
- reorganise duplicated test for images
Added correct contextual Meta Titles and Descriptions

closes #2462

- adds conditionals for pagination for index, tags and author pages
- outputs correct meta title and description according to context
- adds further unit testing
Redirect uppercase routes to lowercase version

fixes #3857

- adds uncapitalise middleware which detects uppercase in req.path and
  redirects to the lowercase equivalent
- change the ghost route to a regex, just so it's consistent with other
  routes in the file
Fix mobile settings menu transitions with new GUI

Ref #3810
Delete tokens before deleting a user

fixes #3750

- Updated tests to create tokens for one user. This caused the tests to
  fail for MySQL exposing the bug.
- Delete user's tokens along with posts
Adjust setup and teardown of route tests.

Closes #3856
- No longer call clearData and initData in test setup because
  migration.init is run during Ghost startup.  The unhandled
  error was a result of clearData removing all the tables while
  Ghost was running--there was a timing issue with the oauth middleware
  checking the refreshtokens table when it had just been deleted.
Importer: Sanitize UUIDs

Closes #3844
- Before importing, all data is checked for incorrect UUIDs. If check
fails, data is sanitized and outfitted with correct UUIDS.
- Scaffolding allows for easy implementation of additional
sanitization, should that be required in the future.
- Test included, old tests updated.
Merge pull request #3862 from novaugust/settings-menu-gui-update

Fix mobile settings menu transitions with new GUI
Merge pull request #3863 from jaswilli/issue-3856

Adjust setup and teardown of route tests.
Merge pull request #3861 from cobbspur/metas

Added correct contextual Meta Titles and Descriptions
Show warning dialog if session has ended in editor

Closes #3839
- Display a warning modal in the editor routes if the user
  is logged out due to re-authorization problems.  This provides
  a chance to copy any unsaved content before being sent to the
  signin page to log back in.
Merge pull request #3873 from jaswilli/issue-3839

Show warning dialog if session has ended in editor
Fix up user profile
Merge pull request #3865 from ErisDS/issue-3750

Delete tokens before deleting a user
Merge pull request #3860 from ErisDS/issue-3857

Redirect uppercase routes to lowercase version
Merge pull request #3859 from ErisDS/issue-1299

Update editor markdown tests
Fixing settings tests
Merge pull request #3882 from JohnONolan/fix-profile

Fix up user profile
Merge pull request #3855 from felixrieseberg/iss3844-importer

Importer: Sanitize UUIDs
Upgrading Casper to 1.0.1