fixes minor code problems, such as missing semicolons, etc.
add JSHint rules
Merge pull request #26 from joscha/minor-fixes

fixes minor code problems, such as missing semicolons, etc.
Refactored some of the read key and generate key code to be more async w/ Promises. Removed .idea from .gitignore