Better logging

DON'T MERGE YET
================

We now use the `logging` module to take care of logging. This is very much alpha release code. Hence don't merge. There's also a few things that this will deprecate that haven't been taken out yet.

Will close #40 when merged.