many fixes after first live night test

Numerous dumb errors with == fixed, new time comparison functions
because of byte rollover errors in prev function.  changes to logic of
sleeping/waking/squawking.