[1.4.x] Fixed #18614 -- Added imports and changed render_to_response to render.
[1.4.x] Made LiveServerTestCase to restore state on exit.

The piece of state is DB connections' allow_thread_sharing attribute
which gets munged when test are run when in-memory SQLite databases.

Thanks Anssi for suggesting the possible root cause and Julien for
implementing the fix.

Backport of ea667ee3aeed33bce1dd681d9c0ea42f9926db5a from master.
Merge pull request #212 from kevinlondon/ticket_18614_1_4

[1.4] Ticket 18614 -- Add Imports and change render_to_response to render
[1.4.X] Fixed #18656 -- Fixed LocaleMiddleware link; thanks mitar for the report.

Backport of 07d70e9b26 from master
[1.4.x] Fixed a security issue in image uploading. Disclosure and release forthcoming.

Backport of dd16b17099b7d86f27773df048c5014cf439b282 from master.
[1.4.x] Fixed second security issue in image uploading. Disclosure and release forthcoming.

Backport of b1d463468694f2e91fde67221b7996e9c52a9720 from master.
[1.4.x] Fixed a security issue in http redirects. Disclosure and new release forthcoming.

Backport of 4129201c3e0fa057c198bdefcb34686a23b4a93c from master.
[1.4.x] Bump version numbers for security release.
Fixed #17131 - Added per object permission notes to docs.

Thanks dchandek for the suggestion and mateusgondim for the patch.

Backport of 8d3e501502c308cbdd3cc95b62ace0fe11d373ab from master
[1.4.x] Fixed #18122 - Clarified section title regarding applying permissions to generic views.

Backport of 964979e8ecec3ceccb2119ccb7270111b953611e from master.
[1.4.X] Fixed #16168 - Added note regarding type requirements when overridng ModelForm fields.

Thanks Pieter Swinkels for the patch.

Backport of ebbc414d17 from master
[1.4.x] Fixed #18472 - Added warning regarding set_language / i18n_patterns.

Backport of d7816c563b58ed53d49956321d549a16e2b2ebc0 from master.
[1.4.X] Fixed #18581 - Updated admin actions screenshots. Thanks Kevin London.

Backport of 39541be3bc from master
[1.4.X] Fixed #16941 - Clarified naturaltime output when the time is more than a day old.

Thanks antoviaque for the patch.
Backport of 07e10fbe9f from master
[1.4.X] Fixed #17704 - Updated the StackedInline section in Tutorial 2; thanks xbito for the draft patch.

Backport of 2a16eb0792 from master
[1.4.X] Fixed #13904 - Documented how to avoid garbage collection messages in GIS.

Thanks Claude Peroz for the patch.

Backport of 083a3a4e39 from master
[1.4.X] Fixed #15932 - Documented how to supress multiple reverse relations to the same model.

Thanks Claude Paroz for the patch.

Backport of b496be331c from master
[1.4.x] Fixed #18713 -- Fixed custom comment app name in comments docs

Thanks Pratyush for the report.
[1.4.X] Fixed #16980 - Misc updates to the auth docs. Thanks Preston Holmes for the patch.

Backport of 865ff32b84 from master
[1.4.x] Merge pull request #233 from rafikdraoui/modeladmin-doc

Updated example of customized ModelAdmin in documentation for 1.4

Backport of a04f68b15d8466d0d34f6df1009668cf60dad206 from master.