Eliminate unused rows from page index select

This saved about .2 seconds on 77k active page test case. Still
needs a better fix.
Add a cached thumbnail system for page images
More thumbnail cache tweaks