Enabled usage as composer library

Also added MIT license, please comment on which license you really want to have and I change it, the MIT license is used by symfony.