multi-page support

finally, multipage support seems to have arrived; it is still
experimental and may not work too well, is JavaScript-based, etc.
pending review, feedback and experiments from those who requested it