Changed the plugin to work with the latest iteration of Cloud Files.

- Uploads with the correct content type
- Implemented a better handler for the cache file (DB instead of CSV)
- PSR2 code formatting
- Hooked into the resizing handler so when images are scaled CloudFiles gets notified
- Implemented a single upload method, that takes one file and uploads it. Instead of all at once.

Other minor performance enhancements but keeping the existing structure in place