Restore QuerySelector functions onto prototype.

This largely reverts dc263d62e63038a947f633169d0c9d6c3aa69175, and is necessary so that when a custom parser is used (such as an HTML5-compliant parser), the returned elements still expose querySelector and querySelectorAll methods.