Add a cache buster to all data_rest urls, add caching headers to all
data_rest responses, and check cache validity.  Fixes #1909.
Merge branch 'master' of github.com:gallery/gallery3