#439: Fix PSR1/2 violations

In this commit I have fixed all PSR1 and PSR2 violations as reported
by phpCodeSniffer.
#439: Configure build process to fail on Coding Standards

I have reconfigured the building process to also fail on PSR-2 violations in
the source code; specifically on errors. Warnings are still 'permitted'.
Merge #121 after fixing conflicts
Fix whitespace on closure defintions.
Put back line that went missing during merge conflict.
Merge branch 'pr121'
Start the session after registering the autoloader.