Implemented the ability to rollback to a previous revision

Completes implemention of CiiMS#86 and CiiMS#138