added composer.json to support use of Composer

The only dependancy I could see was CURL so have added that as required.
Merge pull request #6 from benrcole/master

added composer.json to support use of Composer