Collected changes

1) Add a tweak to change the image compression quality used by the content server when it makes thumbnails.

2) Use much less memory when reading and writing cache