Extend the configuration REST API

This includes adding endpoints for layers, caches and sources.