Add new method getOrCreateClass that accepts superclass

Add another getOrCreateClass method to schema which also takes in a proposed superclass and creates the class with the superclass as its ancestor if it does not exist, and checks to make sure that the class has the specified ancestor if it does exist.