Logging

Implemented logging for all of the activities.

Not sure how useful reading through diffs will be for this one, as that'll just show what's being logged, which is less useful than seeing what's not logged. 

That is to say, if you guys see anything that I'm not logging but you think I should be logging, please tell me. I've done a lot less debugging than most of you have.