Add EDIT function to GUI. Minor fixes

Fix: disabling a section no longer disables all its activities.
Fix: edit can now edit optional courses.