Substantial reworking of LogData.py.

The data logging functions have been gathered into a class, with an
additional live logging function to simplify LiveLog.py.