Add support for repair step classes

This also makes it possible to unit test each repair step class individually

Please review @butonic @icewind1991 @bantu 
Use `if ($step instanceof Emitter) {` instead, `BasicEmitter` is an implementation