Cutting RC 20141105

Merge remote-tracking branch 'origin/master' into rc
Fixes 3 issues found after deploying to stage:

  - undefined and NAN% was being displayed in text when student data didn't include correct or incorrect.
  - Items in radio display numbered incorrectly when student data missing options at the beginning.
  - Mouseover text included text from the correct and incorrect span.
Merge pull request #160 from Stanford-Online/dcadams/analytics_origin

Fixes 3 issues found after deploying to stage:
Make LTI grade submissions respect deadlines
Merge pull request #159 from Stanford-Online/kluo/lti2-due-date

Make LTI grade submissions respect deadlines
Fixes 2 issues found while testing on stage:

  -Issue with incorrect counting when adding rows to a radio.
  -Issue with list of parts to get data from the api.
Make LTI grade submissions respect deadlines
Merge pull request #161 from Stanford-Online/dcadams/analytics_origin

(In-line Analytics) Fixes 2 issues found while testing on stage:
Merge pull request #162 from Stanford-Online/kluo/lti-rc

Make LTI grade submissions respect deadlines
Merge branch 'rc' into release
Merge branch 'release'
Add report problem modal
Merge pull request #163 from Stanford-Online/kluo/report-problem

Add report problem modal
Asynchronous download button for ORA2 responses

WIP finished collect_ora2_data management command, wired it to instructor dashboard UI, still needs to have logic factored out and exposed in instructor_analytics.basic

Remove extraneous print statement

Refactored sql querying logic into instructor.utils and wired the html button and management command to it there

Added comments to several methods

Added optional output_dir argument to collect_ora2_data management command and default behavior to write to stdout

Simplified code structure in management command and comments per jrbl's PR comments

Responded to jrbl's style comments, added test reference to check endpoint, and parameterized database name from django.conf.settings

Removed reference to django.conf.settings['DATABASE'] in favor of django's natural default

Removed extraneous import and whitespace per overlooked jrbl comment

Factored db connection logic into common/djangoapps/util/query.py

Whitespace changes

First stab at conversion to celery command from synchronous version

WIP Converted ora2 report to asynchronous/celery format, still needs integration with progress table and proper S3 key.

Implemented unit tests for instructor api, integrated ora2 celery job with pending tasks table, and cleaned up code for pylint

Removed extraneously included file from commits

Added more unit tests and reformatted whitespace

Fixed PEP8 violations, replaced pylint disable codes with string representations, and improved brittle unit test

Reformatted long string and removed extraneous redirect from javascript