Support optimistic locking on updates

resolves clojurewerks/elastisch#56
Test versioning on the REST api