Move threading->multiprocessing, state machine improvements, new config module