Prepare 3.0.0 release.
Various minor code fixes to make JSLint happy.
Merge tag 'v3.0.0' just to tell Git its fully merged.
Merge branch 'hotfix/jslint-error'