Added funciton to build a mongo query from query fragments
use queryBuilder in server.js
error handling
Merge branch 'master' of github.com:integrityapplications/pinz