Repo get config API also responds JSON

The `GET /:org/:repo/config` endpoint responded by rendering HTML.

This pull-request maintains that, but adds the JSON format to make it also available as a JSON API.

(This uses content-negotiation, and it can perhaps later be generalised into a generic responding internal API as needed.)