Removes objectTypeModelMap to reduce circular dependency.

refs #2455

- also note areas where we still have lazy loading of modules.
- moves one lazy loading to non-lazy require.
Posts view: some DRY.
Make tokens URL safe

Base64 encoding causes some issues when the token is URL encoded
as the = symbol is not a valid URL character. We replace any =
symbols with a - as this is valid in a URL, but is guaranteed
not to appear in a base64 string. This fix ensures that Ghost
password resets work with mail providers such as Mailgun that
add their own tracking redirects

closes #3872 (for real this time)
Merge pull request #4490 from thisishugo/url-safe-tokens

Make tokens URL safe
Fix up single post routes.

No Issue
- Add local store lookup back to edit route.
- Prevent entry into route when an author is not the owner of a post
  even if model is passed in.
- Clean up references to pagination as there's no pagination going on.
Tags management api hookup

Ref #4248
- Added tags settings menu
- Added basic new, edit, delete, and save actions
- Show actionable edit buttons dynamically based on tag state
- Infinite scroll
- Closing the tag settings menu rollbacks your changes
- Removed not-yet-implementable code
Merge pull request #4482 from harrykiselev/patch-1

Posts view: some DRY.
Merge pull request #4489 from novaugust/tags-client-basics

Tags management api hookup
Merge pull request #4501 from jaswilli/routes

Fix up single post routes.
Close tag settings menu on transition

Closes #4504

- Adds a `willTransition` action that closes the tag settings menu when transitioning to another page
Adding comprehensive subdirectory route tests

closes #2230, refs #4477, #4476

- Test that subdirectories route correctly no matter how they're specified
Larger edit tag hit area

Closes #4505

- Increases the size of hit area on tags settings pages
- Comments out the styles for nested tags as these will need revisiting
Merge pull request #4091 from hswolff/remove-a-cd

Removes objectTypeModelMap to reduce circular dependency.
Merge pull request #4515 from PaulAdamDavis/tag-click-area

Larger edit tag hit area
Merge pull request #4513 from PaulAdamDavis/close-tag-settings-on-exit

Close tag settings menu on transition
Merge pull request #4514 from ErisDS/subdir-tests

Adding comprehensive subdirectory route tests
Ensure Post Image Uploader Reset

Closes #4431

- The PSM does not reset on a transition from editor (existing post) to
editor (new post). If the existing post had a cover image, the image
uploader would not be reset during the transition and appear slightly
broken in the editor for the new post.
- In this PR: A reference to the uploader is saved, allowing the route
for editor/new to instruct the PSM controller to have the uploader
reset.
Change RSS content type & use absolute URL in meta

no issue

- changes the content type for the RSS feeds from text/xml to
  application/rss+xml
- changes the link rel=alternate tag to use an absolute URL for the feed
  in the blog meta data
Fix gravatarLookup method

Closes #4511
- Add missing "return"
- Fix error handling
Merge pull request #4512 from sanddudu/patch-3

Fix gravatarLookup method