Adding Composer Support

Adding composer JSON file and composer lock file. Also addressing #4. For full support the library will need to be added to packagist.