Delete old snapshots.
Fixed snapshotting.
Fixed wrong deletion issue on rollback.
Merge branch 'test' into dev