Add composer file for easy dependency management

Since composer is going mainstream, I have added a composer.json file to master. I can additionally backfill the other branches.