Added the ability to specify query as a hash which would be matched to a query string regardless of order