Fix serving uploaded media on a dev server.

The recent fixes for static media resulted in /media/ serving up static
media files instead of the /media/ directory. This happened because the
document_root was no longer set and the static file server was used.
This reverts that part of the code.