refactored tests in courseware to draw course info from mongo instead of xmlmodulestore
Refactoring the code in tests.py to remove unnecessary dependencies on the XML Modulestore.
Merge branch 'master' into jnater/playground

Conflicts:
	common/lib/xmodule/xmodule/modulestore/tests/factories.py
	lms/djangoapps/courseware/tests/tests.py
Refactored some of the classes in tests.py to not unnecessarily depend on the XML modulestore.

Conflicts:
	lms/djangoapps/courseware/tests/test_navigation.py
	lms/djangoapps/courseware/tests/test_view_authentication.py
	lms/djangoapps/courseware/tests/tests.py
Removed a unnecessary imports from mongo_login_helpers.py and repeated code from tests.py.
Addressed pull request feedback.
Merge branch 'master' into jnater/courseware_tests

Conflicts:
	lms/djangoapps/open_ended_grading/tests.py
In the middle of addressing pull request comments. This is a safety commit in case I have to revert some changes I'm about to make.
Removed the use of random.choice()
Removed run_wrapped() and replaced its functionality with patch.dict():
Updated a doc string.
Removed some unused functions.
Merge branch 'master' into jnater/courseware_tests
Removed some unnecessary imports.
Addressed pull request feedback
Merge branch 'master' into jnater/courseware_tests

Conflicts:
	lms/djangoapps/courseware/tests/tests.py
	lms/djangoapps/instructor/tests/test_enrollment.py
Formatted a docstring.
Added clean reports dependency to rake JavaScript test tasks.
This ensures that `rake test` will clean the report directories
*before* running the JS tests.
Used dependency to ensure that REPORT_DIR exists before cleaning.
This allows the build to pass in Jenkins
Merge pull request #204 from edx/jnater/courseware_tests

Jnater/courseware tests