Add product categories endpoint to REST API

This commit adds two new endpoints:
* GET /products/categories - returns a list product categories
* GET /products/category/#{id} - returns the product category for #{id}

Closes #5806
Merge pull request #5913 from maxrice/feature-issue-5806

Add product categories endpoint to REST API