Repository configuration

I'm now storing configuration under `/metadata/configs` to keep a history.

This isn't quite finished because we are going to store the data as JSON, so this can't be merged until @domdere has finished his work (no rush).