Cleanup & Bug Fix

- Cleaned up imports so each test only imports what it needs
- OpenStack Swift Hook Test had a bug
--- the final test was still mocking b64decode; fixing this revealed problems in other tests
--- fixed the other tests so that the json data was in byte form by forcing an encoding