Pull in much code from the old Dendrite project. Starting to implement the Python data store.