Add logging for factored-out functionality.

Instead of adding logging in every stack for these components we are about to de-duplicate, add logging for them here so we don't just have to go back and de-duplicate it later. I think I've covered all the logging we'd be sharing across stacks in this commit.
Merge pull request #2 from martinb3/master

Logging for shared components