Changed the scheduler to only consider previous *scheduled* runs of the sprinklers.  Modified config.py to add a new variable MAX_ZONES that controls the maximum number of zones to configure.  Generalized the templates to support up to 32 zones.