Added a config option for some debug stuff and preliminary work on the bucket module.