Major Refactoring in GroupTransformController

Created seperate actions for various functions being done in index.
Now, it is easier to understand, modify and test.