Refactored Cube framework to use basic MVC paradigm, removed obsolete code.