add training functionality and re-re-fix

added open/close trigger level training feature, via manual override
switch. to train the dusk trigger level, close the blinds then flip the
switch immediately back on before they're done closing. to train the
dawn trigger level, do the reverse. also moved the 'prevent immediate
close/open cycle' fix to the setup routine, which is where it needed to
be.