Rename mainController to index, delete unused files