Merge pull request #1269 from hwhw/master

pull fixes in base, plus some emulator features
turn off debug in unit test by default
Uncommnet the `DEBUG:turnOn()` line to turn it on.
fix crash on special offered Kindle
refactoring readerbookmark to show both bookmarks and highlights
in the bookmark menu
and use binary search of the sorted bookmarks table whenever is
possible.
make radius field respects popout flag
Merge pull request #1270 from chrox/fix_1209

refactoring reader bookmark to show both bookmarks and highlights
fix initialization order on Kobos

notably, this will set up input offsets for viewport stuff after the
input rotation has been set up.
move debug function handover, set viewport for Kobo Mini

in order to have debugging facilities in framebuffer:init(), we hand
over the debug function as soon as we can.

Also, set a viewport for Kobo Mini. Hopefully, it fits most people -
I can only test on my unit.
smaller viewport for Kobo H2O (bezel overlaps bottom)
update base: pull fixes