Fixed formtools tests with Python 2

Fixes #19905 again.
Added missing deprecation note for fastcgi in 1.7 release notes; refs #20766.
Tweaked order of create_test_db arguments for backwards compatibility.

Since `serialize` was backported to 1.7, it should appear before `keepdb`.
Removed extras/csrf_migration_helper.py
Fixed flake8 error.
Doc edits for refs #22487.
Remove overzealous migration flushes from migration test suite
Added rollback emulation to spatialite backend; refs #22487.
Simplified handling of use_debug_cursor.

Turned it from a tri-valued boolean into a regular boolean.
Fixed #20420 -- Normalized query counts on Oracle.

This is achieved by inserting a fake entry in connection.queries when
not releasing a savepoint (since Oracle doesn't support that operation.)

Also removed the can_release_savepoints feature that was recently added,
but is superseded by this solution.
Dropped support for SpatiaLite < 2.4.
Removed unused import.
Fixed #17552 -- Removed a hack for IE6 and earlier.

It prevented the GZipMiddleware from compressing some data types even on
more recent version of IE where the corresponding bug was fixed.

Thanks Aaron Cannon for the report and Tim Graham for the review.
Close autoescape tag in template documentation.
Corrected some indentation in docs/topics/auth/default.txt.
Fixed #22792 -- Updated checks for list_display_links in model admin
Fixed #17431 -- Added send_mail() method to PasswordResetForm.

Credits for the initial patch go to ejucovy;
big thanks to Tim Graham for the review.
Fixed #22770 -- Removed create_superuser from post_migrate signals.

Moved logic to syncdb command for backwards compatibility.
Fixed #22801 -- Added 'www.' to diveintopython.net links
Fixed #22798 -- `pluralize()` now adds plural_suffix for any `1 < d < 2`

Thanks Odd_Bloke for the report.