add the three routes from the contents API

This patch adds the three missing routes from the Content API. It adds a utility method to decode the automatically the base64 encoded content and a lower level `raw-api-call` which does no further work after creating the base request (to handle non-JSON response).