fix bugs
added debug option, all STDOUT printing is controlled by it
shockclient: debug more for more verbose output, add prettyjson output, add option for node id list in query
syntax error fixes