Updated API client to be PSR-0, PSR-1 and PSR-2 compliant. Added Composer.json file for easy installation into frameworks using Composer. Also added APIGen documentation to this too.