Fixed broken unit test on IE 7.
Finalized the DomQuery.js logic, added unit tests and exposed it here and there.