CORE-5832 Refactored /apps/categories public param.

The 'public' query param for the /apps/categories endpoint is now optional.
Omitting the 'public' param returns the user's private categories as well as all public categories.
Setting the 'public' param returns either the users private categories or all public categories, depending on the param value.