Make topology compensate for pageOffsets
Update foundation to 5.2.3

- Add Javascript files (might come in handy)
Stub for progress listener
Accept only pdf documents
Correct title