Serve media files in dev - see also pull request #71.

In replacement of pull request #71 - same code, but a simplified commit history.