Code now uses python logging module, add API call to control TinCan
logging, messages are now processed based on message types