Mostly implement psr2 code standards

There are still warnings related to the use of underscore prefixes - but this should account for everything else (whitespace, brace style multiple classes in the same file etc.).

Related to #2.