[POC] Class based indexes

There should be a sane API through `schema` ( A SchemaEditor, I presume) to do this.