Apply PSR1 & PSR2 and add missing phpdoc

* http://www.php-fig.org/psr/psr-1/
* http://www.php-fig.org/psr/psr-2/
Tests coding standard
Created missing properties
Throw relevant exception in tests

If the channel cannot be created, the tests throw
Fatal error: Call to a member function exchange_delete() on a non-object
instead of relevant exception
Prevent fatal errors in AbstractConnection::close()
Refactored spec/parser.php
Demo coding standard
Benchmark coding standard