Add support for repair step classes

This also makes it possible to unit test each repair step class
individually
Added repair step for legacy storages
Added unit test for repair script of legacy storages