PDF support added.

This involved changing the internal structure of the module, so now it
doesn't use a phantomjs webserver but a phantomjs command line
script.