moved buffer to node app, streamlined debug, tweaked testing.

Looking to resolve major memory and performance issues, moving a chunk
of client side code to the node application, as well as various tweaks
to logging and the python testing scripts.