Split API into "core" submodule, use __init__.py only for imports
Allow config comment lines to start with whitespace
tests: +TestClientInit