query: add new query tool
query: added --queryformat option to specify an rpm QUERYFMT like output 
format
build: add check Makefile target to run tests