Update package.json.

Add missing properties.
.gitignore: sort entries by name.
Pin dependencies.
Trim traling spaces.
Add JSHint support via `npm run check`.
Fix most JSHint warnings.
Add Travis CI support.
Add dependency and npm badges.
package.json: specify the files when to install.
Merge pull request #3 from XhmikosR/master

Minor improvements