rewrote if logic to be positive
Implement decorator to force draft mode switch

* Implement courses.actions.always_switch_mode decorator to force a
  function to always be run in draft mode.
  (addresses #330)
* Minor bugfix to File Upload dialog and test of decorator on it.
Deployment and testing of always_switch_mode

* ```@always_switch_mode wrapper``` installed and tested in following places:
  * File Upload/Edit/Delete
  * Exam Edit/Save/Delete
  * Video Upload/Edit/Save/Delete
  * Content Section Rename/Save/Delete/Move
  * Static page Add/Save/Delete/Move
  * Announcement Create/Edit/Delete

* Decorator updated to only switch mode if mode switch is necessary
* Cleanup of unused imports in a variety of places
* courses/email_members audited but mode switching didn't seem necessary

(closes #330)
Removing DEBUG output from @always_switch_mode
Merge pull request #2257 from Stanford-Online/jrbl-330-mode-switching-problems

Jrbl 330 mode switching problems