* Add bulk actions to purge excess or all revisions.
* Introduce unit tests.
* Conform to coding standards.