Added PHPUnit 3.7.* support via composer

Added PHPUnit (installed via composer) support. I've fixed the unit tests - the integration tests seem to be dependent on a different project running on localhost so I wasn't able to run them actually.