Added chat logging.
Added configurable logging. Closes #54