added web control via post for program state
added web commands to change active watersensor via post
cleaned up code