Add composer.json to support installing with composer. Fixes #4776