Ids2 controller refactoring

DO NOT MERGE, this has now been updated into another branch by ARNE

Refactored the controller classes. 

If a method has been repeated in more than one page controller class, it will now appear in the "ControllerGeneral" class, which each individual class can refer to by sending the event and the "application variable".

Basically, It works just as before, but the code is a bit neater.