Added a basic logger.
Modified ReplicationRunner to try to automatically reconnect if a db connection is lost. Also added some logging by the way. Fixes issue #1.