Implement ParentNode's querySelector on Document, DocumentFragment & Element

This is a subtask for #2254 & #2576.

Spec:
http://dom.spec.whatwg.org/#dom-parentnode-queryselector