Configuration API v1: SP support

Adding the first version of the configuration API to get SP configuration to the Gateway
Listing errors under a `configuration-errors` key is atypical of our API design. I assume this is intentional as to differentiate between configuration and JSON errors, but I feel JSON errors should really never occur and the different keys only add "confusion". Also, you should document the added APIs in the wiki.