Start writing the backend for saving provenance. Rework the data model
to be more rational across the system and fix up naming conventions.