added composer.json to support use of Composer

The only dependancy I could see was CURL so have added that as required.