Beginnings of an API.

Nothing functional yet but beginning to stub out some code.