Normalize package.json and add missing properties.

Also refactor the properties in a more sane way.
Update dependencies.