Fixed bug where changing the state of the submission to NeedsCorrection does not get applied when adding a comment. Updated tests to check for changing status when adding a comment and adding files.
Fixed bug where Primary Document section was showing up when in Needs Correction state.
Fixed bug where attachments were showing up in Advisor view even when disabled.
Closed some leaks.