Basic logging available. Also starting to think about di.

Related to #11. I wouldn't yet call it "decent".