Initial code upload

todo: clean, proof, debug, test

wishlist: put in a bit more flexibility for launching at startup and killing from the commandline. more later