Updates to support multiprocessing
More initial changes - have it working for light monitor, still working on door