Prepare 3.0.0 release.
Various minor code fixes to make JSLint happy.
Merge tag 'v3.0.0' into stable-3.0.x to tell Git all's fine.
Merge branch 'hotfix/jslint-error' into stable-3.0.x