Subtitutions of requires for namespaces to use the library in symfony2.

Adition affilliate dta management.

Creation of composer.json.