add option to check doc revision after fetching from cache

A number of document update conflicts seem to be related to stale cache. I haven't been able to figure out why the cache getting stale but this may be a reasonable workaround in the meantime.

@czue @dannyroberts thoughts?

http://manage.dimagi.com/default.asp?136474