Added /v1/categories endpoint to the API

Adds a categories endpoint to the API.