Fixing some code standards

Following PSR-1/2
autoloader does not need to know about tests
Merge pull request #128 from TomHAnderson/test-namespaces

autoloader does not need to know about tests
Fix for psr json
Merge pull request #129 from TomHAnderson/composer.json

Fix for psr json
Added EVENT_FETCH_ALL_PRE
Merge pull request #130 from TomHAnderson/fetch-all-pre

Added EVENT_FETCH_ALL_PRE
Merge pull request #127 from gabrielsch/patch-1

Fixing some code standards