move process control code to sockethub bin, so they don't interfere with tests
logging
safely handle the possibility that we get communication from a platform not in our process thread family
factory
logging
re-structured and simplified parts of initialization, improving flexibility and configurability
updated tests, should be passing