Added composer.json.

Added composer.json to allow library install and dependency management with [Composer](http://getcomposer.org/).
To achieve this, please register the repo in [Packagist](https://packagist.org/).