Reporting functionality and error recovery

A TDS service places all logging messages in the Agent log file, using existing logging services.