Monkeypatch Kernel in development mode only

I don't know if this will have any unintended consequences, but it seems that Kernel should only be monkeypatched while in development. The others ("test" and "release") should never need these methods defined on Kernel.

I also shortened the methods a bit.