Reduce code nesting
Reduce nesting in group helper
Reduce more nestings
Split prepareParameters into String and Array sub methods
Merge pull request #71 from owncloud/fix-resharing-activities

Reduce some code nesting