restore autodetected tables properly if some pages have been deleted on page reload
reloading page, when some have been deleted, works

but there's a weird cache-buster on pdf_view.js#591 because Rack::File sends a 304 inappropriately for pages.json, I think.