Add BucketManager class

This moves the design document manipulation functions into the
BucketManager class, which is now obtained via the new bucket_manager()
method in the Bucket class. This breaks API with older versions

Change-Id: I3947fc0fa672d1eeeaf26b3c21addb0935bb9eef