Extract revision stabler.

Not tested.
Merge pull request #7 from akr/patch-1

Extract revision stabler.