Add packagist/composer support

Closes #339