Coding standards

In this pull requests I have fixed all remaining violations of PSR-2 in both the app and tests folder for the entire web2 application. In addition to the above will the build process now also run phpCodeSniffer and fail if any errors were encountered during the checking of the Coding Standards. Warnings are not a reason to fail at this point.

Related to: https://joindin.jira.com/browse/JOINDIN-439