Bug fixes mostly around write methods.

Set content-type header from serializer mime setting.

Make meta getter optional (put does not return this in some apis).

Add stub (unfinshed) for header based auth in async adapter.