make fake_events device a private feature of the Kindle device initialization

This is highly Kindle-specific, so we keep it there for now
fixes for picdocument

picdocument didn't use the document API correctly
update base

depends on pic_jpeg FFI conversion
Merge pull request #1134 from hwhw/master

Slight refactoring of input, fix picdocument, FFI-API for pic_jpeg