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
Merge pull request #2877 from jaswilli/2866-slugs

Update slug API to work with additional types