Add get-with-cas ('gets') / set-with-CAS functionality

This patch allows safe updates of values in a scenario with multiple writers.