Added query and moved filtering to a global request function. Added more tests and a makefile for test execution.
Fixed npm test definition