adaptions to koreader-base framework

This is not yet perfect, rendering text doesn't seem to "add" the values
correctly.
Merge pull request #825 from hwhw/master

Adaptions for new koreader-base framework