WIP: Introduce revert

This PR introduces the ability to revert a commit