Add composer.json

Adds a composer.json file for easier inclusion in PHP projects that use composer.
Package should to be added to packagist.org once merged.