use two-level cache for media meta cache

With that change a cleared memcache doesn't result in having to rescale all images
set version for 3.7 branch
revert merged version change, master is still master
rename update-to-3.7 script
Merge branch '3.7'
add new update-to-master script for master branch