Removed all references to MainFrame class from class editor's model classes

In order to avoid future problems and lay ground for further code refactoring, references to MainFrame were removed from model classes.
Deleted some old, unecessary classes