Updated code to be PSR-1 and PSR-2 compliant

Update was done usng the "php-cs-fixer" program, with manual checks
afterwords.
Updated tests to be PSR 1 and 2 compliant.
Updated autoloader to be PSR 1 and 2 compliant.
Merge pull request #102 from tedivm/psr_formatting

[WIP] Updated code to be PSR-1 and PSR-2 compliant