Fixed grammar/typos in auth customization docs
Fixed #19924 -- Fixed selectors in actions.js that did not use options.
Fixed #21222 - Documented that 'default' and 'other' must be different databases when running tests.

Thanks vernondcole for the suggestion.
Removed unnecessary semicolons.
Used "is" for comparisons with None.
Fixed "redefinition of unused 'foo' from line X" pyflakes warnings.
Fixed an undefined variable and clarified the purpose of a test.

refs #4459.
Whitespace cleanup.

* Removed trailing whitespace.
* Added newline to EOF if missing.
* Removed blank lines at EOF.
* Removed some stray tabs.
Sanitized test assertions in gdal tests
Fixed #20600 -- oredered distinct(*fields) in subqueries