Update package.json.

Add missing properties and refactor them in a more sane way.

Also fix test command on Windows.
Update mocha dependency.
Update .travis.yml.

Add add v0.11.
README.md: Add dependency badge.
Remove trailing spaces.