Add support for getting/setting bucket types

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>