Fix most JSHint warnings.
Add Travis CI support.
Add dependency and npm badges.
package.json: specify the files when to install.