Hi,
I've pretty much implemented the optimistic locking code[1], can you please take a look and comment?
Please do NOT merge it in master as I still need to go through the tests in the suite and add some more tests for the new functionality.
Cheers,
Mircea