Refactors job listener into snapshot and restore job listeners.
Adds support for snapshot cleanup phase.