Made the library code PSR-0 compatible and added composer, as well as a phpunit.xml.dist
Fixed tests
Merge pull request #1 from magnusnordlander/composer

Added Composer and fixed the tests