Added support for composer and removed constants

* Made PSR-0 compliant
* Added support for Composer
* Removed constants