Add defininition of window.location.origin in both CMS/LMS

The same bug in studio was fixed in #3893, and as TinyMCE is also used in LMS, it should be also fixed in LMS.
Here a common javascript file called 'ie_shim.js' is added, so that in the future it can be used for other IE compatibility purposes too.
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
Log CDN request timeout with level INFO.
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
Refactor studio tests to use StudioCourseTest
Fix is_browser_on_page method for Studio Container page
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.
Use clear and send_keys instead of action chains in page object methods
Merge pull request #4552 from edx/zoldak/studio-container-page

Improve is_browser_on_page method for Studio Container page
removing syslog_addr

This is not currently being used in production and will not
be used moving forward since logs are remoted using splunk
Merge pull request #4558 from edx/jarv/remove-syslog-addr

removing syslog_addr
Merge pull request #4548 from edx/benmcmorran/refactor-studio-tests

Refactor studio tests to use StudioCourseTest