refactor to libs, query mongo, add ping
update gulp/package