Better Koreader plugin debugging

There was one huge pain point during the development of gotobed : I would put in bugs without knowing and things would go bad. A plugin is effectively a smaller application that is embedded into Koreader but Koreader did very little to point out what went wrong in case something goes wrong. This behavior is actually implemented by the following piece of code. At plugin load time the function…