fixed table name case in ClassModule
Model: new entities are now created through EmptySelection
Moving generic model pieces to libs