initial commit of base code

needs some cleanup, non minified json output