Typo in the warning message.
Removed all the commented caching code.
Removed unused cache variable.
Added a media manager, like the pages module. Will migrate more of the media logic into this over time.
Added available image sizes to the media resizer logic. This prevents somebody doing a denial of service attack by requesting millions of different image sizes.