Foundational code

This is some code for doing client-host communication with a high-level "document" API.