Add support for ETag on ATS.

First step to #400 
Improved testing of batching.
Throws concurrency error message when ETag in client data is set and does not match the server.