Add support for properly logging exceptions
Re-route most console.log messages to use xlog