Factored out C/C++ API to submodule koreader-base