Added a logger utility. It's an abusive stream hack allowing exceptions to be thrown from a stream.
Probably going to hell for this...