Adding _.getQuery() and corresponding tests
merge _.getQuery branch from guahanweb
release 1.7.0