WIP: Add bucket repository and check for existence

Add a bucket repository and a new bucket domain object. Use these to
check if a bucket exists when using the read API. This includes changing
a lot of tests to set up buckets before they can be used.