Fixes tests and adds config files for Travis, PHPUnit and Composer

The code base seems slightly out of date, this pull request tries to (at least partly) remedy that by adding config files (for Travis, PHPUnit and Composer) and fixing the unit tests.
These additions try to mirror other doctrine projects. Feel free to make changes if I missed anything.