Media repository

Implement a media repository with image thumbnails.
Do we need to worry about the case where `headers` does not include a `Content-Type`?