Added logging

Starting to add logging for interesting events. Added error handling for
bad git commits.