Support promise from mime serializers

Adds support for mime serializers to process asynchronously,
while reading response entity and writing request entity.
Still supports synchronous serializers as before.

Issue: #66