Composer Compatibility

All the changes I've made were with the intent of making this library PSR compatible and give it the ability to install it with composer. I've tried to change the code structure as little as possible to respect your work.