Refactored course_nav middleware to isolate the django-wiki hack,
remove unnecessary code, and clarify what it's doing.
Merge pull request #2775 from edx/dcs/wiki-no-middleware

Refactored course_nav middleware to isolate the django-wiki hack, remove unnecessary code, and clarify what it's doing.