Update slug API to work with additional types

Closes #2866
-update slug API to handle users and apps in addition to
 posts and tags
-update existing tests
-add new functional tests for slug endpoint on http api
Cache invalidation for post update

closes #2833
- Handle status change of post
Fix error when running Ghost with a socket

fixes #2879
- Syncronously unlink old socket file
Merge pull request #2877 from jaswilli/2866-slugs

Update slug API to work with additional types
Merge pull request #2876 from halfdan/2833-rasperize-cache

Cache invalidation for post update
Merge pull request #2880 from halfdan/2879-socket-issue

Fix error when running Ghost with a socket