Protect writes to lookup with hash check

This will avoid unnecessary writes if the data has not
changed.
Merge pull request #177 from atlasapi/hashcode-write-lookup

Protect writes to lookup with hash check
Remove configuration of read preferences

We now look into the spring context to obtain a
ReadPreference object.