Read uploaded media file asynchronously

Hi!

Please consider this humble patch.

Also fixes #8.