Initialize MakoMiddleware manually during certificate grading runs.

Without this, problems fail to load because they can't find how to
render themselves, and the certificate generation grading run will
get an inaccurately low count of the possible points a user could
get (anything they didn't see will be omitted), inflating their
grade during certificate calculation and making it inconsistent
with their Progress page.
Allow error messages with non-ascii characters to be handled correctly

Also, add a test for this behavior.
Convert many byte strings to unicode; change string formatting
Fix some line lengths to make pylint happy
Fix formatting of docstrings; add more docstrings
Merge pull request #206 from edx/rc/2013-06-18

Rc/2013 06 18
Initial testing for parallelization
move override of MODULESTORE settings into ModuleStore test case class
Added the beginnings of self cleanup
Contentstore singleton is now cleared during teardown
Moved port range to rake file
PR fixes
Cleaned up import and comment
Fixed pylint/pep8 violations
Consolidated imports
Greater dir naming flexibility.

   Accepts any dirname for the edx-platform repo. Allows the script to be
   called from any directory, not just $BASE/edx-platform.
removes choiceresponse wiping after clicking Show Answer
Moves user activation away from just clicking on reset password

To following the link in the password reset email
Tests + Now subclass PasswordResetForm instead of copy

Changed to subclassing django's PasswordResetForm and
overriding clean_password() instead of copy/paste.
Less lines to worry about for diff-cover this way =)
Add tests for the diff coverage; fix one hidden unicode bug