Unify coding standards

The current coding standards are not consistent and are different to the old version http://owncloud.org/dev/coding-style-guide/. This pull request tries to unify them as most as possible with the PEAR Coding Standards except the use of tabs for indention and the use of opening braces on the same line.

This pull request is a suggestion and should only be applied after broad agreement.