Fixed PSR-0 compatibility and added composer.json

Hi, I've made some changes to support PSR-0 and allow the package to be published on packagist. 
Feel free to pull and thanks you for this excellent implementation!