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