Internal and HTTP API for creating and deleting domains

Laying the groundwork here, public API is expected to change.
Also no DNSSEC support in the public API yet.