This allows for, for example, turning on a water feature or changing pool/spa active status.
Also moved things out to their own files and setup require()s to bring it all together.