SDK implementation

Start with the public API and source-creator guide. Import mod.ts; these three modules are internal implementation. They have no external dependencies. Run tools/sdk-check.ts after changes.