cloundcfg api improvements

This builds on #196, so it shows some extra diffs until that is merged.

Next on this list is to combine this Server/Request approach with the client package. That'll come in another PR because this one is getting to large.