Reduce sql queries for groupname tests. (STUD-1039)

Conflicts:
	cms/djangoapps/auth/authz.py
In OpenEndedModule latest_score and all_score calculate sum of rubric scores every time for ML grading.
ORA-72
Merge pull request #1906 from edx/hotfix/2013-12-10

Hotfix/2013 12 10
Changed default user to be anonymous in both has_access and student.views.index
Corrected missing parenthesis and added test for has_access
Replaced existing test_none_user_index_access_with_startdate_fails
test with new test now that the tested function has changed and
was causing the original test to fail.
Pylint and PEP-8
Add sysadmin dashboard - for seeting overview of system status, for
deleting and loading courses, for seeing log of git imports of courseware.
Includes script for importing course XML from github site.

(cherry picked from commit e949c273d01bbdfc7b5540d082e35b45838e0611)

Conflicts:
	lms/envs/dev.py
add mongoengine to requirements

(cherry picked from commit 29929c62a5d407eb7df530c60fa051c8488f5b5d)
This is a major revamp to make the sysadmin dashboard testable and
more portable to different installation types and situations.

(cherry picked from commit 9b8b89a9cc6cc33aed84b4de73b7745d0c0f5b0a)
After testing with mongo cluster with aws.py settings, there are a few fixes

(cherry picked from commit 0c0b28cbc67029431bb9d15e209c9e39cbbb2c43)
Erroneous logging message removed

(cherry picked from commit fc3baf7d6fdc4f6385632865fa4e7e319aa6ed82)
More production/dev fixes

(cherry picked from commit 7deed40171856a67b8b04fcc073672809f348700)
Added addtional import logger for debugging course imports

(cherry picked from commit 096d0ac6b521492262244d0df0fe86e0bb0a281c)
Added additional loggers for storing in mongo instead of just showing on manual import

(cherry picked from commit 57fe6679b94cab4c757b026c7b6f4028cbb89f87)
This changes it to allow course staff to see their git import logs

(cherry picked from commit 2c2296922165c57e334c831539306154c0f1e7d2)
Code review based fixes:
nitpicks
style
L70-71: subprocess at top of sysadmin
L77: git log —format
L351: modulestore type check - use isinstance and if not xml use mongo so that mongo is used in mixed modulestore
L91: split mongo import and xml import
L258: Use setting for eamap, do_mit, etc

(cherry picked from commit 705f623fd1e35cd0ee95a955f91a27596b3abe67)
Refactor of git_add_course.py from shell script to management command

(cherry picked from commit aed34d73fbef54355b82fb5eb91df0865709fe0d)
Refactor of sysadmin dashboard to use class views, and url includes

(cherry picked from commit 9bc44c0ef314207ed2af7d39abf43739c18401f9)
Class based view refactoring
Switched SSL domain to be settings instead of hard coded
Modified csv return to use memory efficient generator and django qs iterator

Fixup

(cherry picked from commit f2fdc7d1f52156ac72cf020455cc3b91125a011a)