Add process.on('deprecation', fn) emitter

closes #4