Added copyright statement and JSLinted

Added the Esri copyright statement to the JavaScript files and tweaked them to pass JSLint.  Small change to .gitignore excludes files & directories with names that begin with two underscores and excludes zip backups.