Added .jshintrc and started updating javascript sources to adhere to it's rules and added .jshintignore.