Fix traceback missing header for plugin exceptions
Move php-side api to src/api/php-functions dir
Move src.api/python/* to src/api/*

Also rewritten most of API docstrings,
annd improved API coherence
Add isolate_io_context decorator
Push mistakes related to yesterday commits