Update .gitignore.
Update package.json.

Add missing properties and pin dependency versions.
Also fix test command.