Cleanup some Document methods.
Introduce LayoutDocumentHelpers::is_html_document_for_layout for LayoutElementHelpers::html_element_in_html_document_for_layout.
Move the methods on bare Document onto DocumentHelpers.
Cleanup Document::Title.
auto merge of #3780 : Ms2ger/servo/cleanup-document, r=jdm