pull fixes in base, plus some emulator features

needs https://github.com/koreader/koreader-base/pull/282