Add support for creating and deleting terms

Hacky stuff, but works.