CS fixes

In addition to implementing a whole bunch of PSR2 coding standards fixes I have removed quite a few unused ````use```` statements.
I also added php_codesniffer to ````require-dev```` in ````composer.json````