(Bug 5135) Add image resizing (first pass)

This adds the ability to specify sizing in a URL. We will then
dynamically resize the image before returning it to the user. Files are
stored in MogileFS and in a new media_versions table.

This first pass is in-process and doesn't use Gearman, although that
should be implemented before this seriously gets some use.