Refactor to enable testing the individual steps more easily
Refactor for reuse
Test PDF conversion to XML
Update xml to match output expected from pdftohtml version found on Travis, and skip tests unless they are likely to pass.
Refactor for easier testing, and add regression tests
Strip out “[blah blah]” (which was probaly original intent of regex, just not formatted correctly). See https://github.com/mysociety/pombola/issues/953