Implement Document::contentType

Spec:
http://dom.spec.whatwg.org/#dom-document-contenttype

This is a subtask for #1428 and #1510.