FFI-based MuPDF API

This is the new approach to interfacing MuPDF.
Please test extensively.

I've added some tests to the test suite, too. Probably some more can't hurt, but it's a start.