Add .eslintrc, .eslintignore and fix most reported errors.
Merge pull request #3 from anaran/add-eslint

Add .eslintrc, .eslintignore and fix most reported errors.
Add .jscsrc and fix all reported errors.

Options in .jscsrc should be tracking
https://github.com/mozilla/addon-sdk/wiki/Coding-style-guide