remove pressure maintaining code from Periodic, should be handled by standard Compressor class
move controller code to separate thread so that main thread can poll for mode changes