adding features to support tracking the calculator & warning signs

also added a flag in yaml to turn on debug logging
cleaned up logging functions
bug fixes, logging, supporting logdebuglevel

bug fix: occasionally missed frameChange when changes happen at the
boundary of rewind. Now we go back one more slide, and also refresh the
last Frame.