Converted middleware tests to use RequestFactory.
Fixed #21255 -- Closed connections after management command ran

Thanks kabakov.as@gmail.com for the report, and Aymeric Augustin,
Simon Charette for the reviews.
Fixed #22279 -- Prevented dummy backend going through DatabaseErrorWrapper

Thanks Daniel Hahler for the report and Tim Graham for the review.
Fixed #23938 -- Added migration support for m2m to concrete fields and vice versa

Thanks to Michael D. Hoyle for the report and Tim Graham for the review.
Removed release note for refs #23938 as it couldn't be backported to 1.7.
Fixed breakage by 6fb9dee4 under Python2+Windows.

Refs #23271
Fixed #23581 -- Prevented extraneous DROP DEFAULT statements.

Thanks john_scott for the report and Markus Holtermann for review.
Added test for an intermediate swappable model change in migration state.

refs #22563
Fixed #12118 -- Added shared cache support to SQLite in-memory testing.
Removed unused import.
Fixed #23450 -- Fixed transient failure of requests...test_far_expiration.
Replaced migration state render() by apps cached property
Show migration elapsed time when verbosity>1
Passed around the state between migrations
Reused states as much as possible in migrations
Fixed broken tests
Added ignore_swappable to StateApps