Add support for installing from package.json

This allows you to install dependencies from a `package.json` file.