Adds support for Reading to an IWriteDocument and tests. Fix for #105.

Also did some other cleanup like making tests async, and introducing a constant for the media type.