Use /tmp/mako_lms and /tmp/mako_cms for compiled mako templates.

Currently a new temp directory is created for every process via
mkdtemp_clean() which cleans it on process exit.

However, this is not compatible with using --preload option of
gunicorn. With this option the tmp directory is created on gunicorn
start and is shared by all the workers. But when a worker exits it
deletes the directory. And so on the next requent the tmp directory
needs to be recreated and the templates need to be recompiled.

LMS-6507
decode uri component before redirect for safe redirect
add var declaration for next
check if next is not defined
Add a view that can show us what URL params we got
Add a more informative assert to a lettuce helper
A debug view for seeing the URL params
Add a test of login with params on the next URL
Fix the decoding of ?next=
Merge pull request #1 from edx/ned/add-test-to-4080

Ned/add test to 4080
On import, don't move the course into the course_dir but just
do the import from wherever it unpacked.
Avoids an exception where the top-level dir had a subdir of same name
as one being moved, but also just makes it faster.
Wrap JSInput Python code in CDATA section

Python code can commonly contain characters that are invalid XML, such
as '<' and '>'. This has proven to be a pain point for instructors
implementing custom Python grading functions for their JSInput problems
(see sample code below).

This change creates a more robust template from which to make
modifications.

```python
    # This is an XML syntax error, when not inside a CDATA section.
    if i < 0:
        print('negative')
```
Add edit info to instantiated xblock in update_item
Refactor to use usage_key_with_run in item.py
Merge pull request #4563 from Stanford-Online/stv/jsinput/cdata

Wrap JSInput Python code in CDATA section
Merge pull request #4544 from edx/benmcmorran/fixes-from-bulk-publishing

Return edit info from update_item and refactor item.py to use usage_key_with_run
In legacy dashboard changed make_usage_key() to make_usage_key_from_deprecated_string().

LMS-11146
Simplify acceptance test env settings for pipeline handlers.

It will now inherit from common settings.
Merge pull request #4571 from edx/benp/acc-env-settings

Simplify acceptance test env pipeline handler settings.
Merge pull request #4440 from edx/bug/import

Bug/import