Console improvements

And having console.log() and friends work when an extension is deactivating would be super helpful. I ended up adding a logging function writing to a file to understand and verify some nuances about deactivation and Disposables.