Implement Document::doctype

Closes #1482.
auto merge of #1483 : brunoabinader/servo/document-doctype, r=jdm

Closes #1482.