Fix failing unit tests
Fix code style errors
Integrate Travis-CI for PHPUnit testing