Refactor to prevent leaks from nested closures
Allow clients to skip serving images from the content or cache directory

E.g. if clients use nginx try_files then the only requests that come through
are ones that require a resize/optimise.
0.4.0