[tribaal, r=gnuoy] This is a backport of the fixes introduced in https://code.launchpad.net/~gnuoy/charms/trusty/swift-storage/lp1496004/+merge/273209 .
Note that the only difference in terms of diff is that the swift_storage_utils.py file is in the hooks folder here instead of the lib/ folder in the -next branch.