Added concept of response backends to image resizer, so it's now trivial to use something like X-Sendfile and X-Accel-Redirect rather than serving the image data directly through the app.
Moved exceptions into their own module to avoid circular imports