Logging

Closes #87 

Another PR @rcrichton :)

Logging tech debt. Cleaning up the logging has actually made a big difference to performance.