Use existing assignments in student to do list.

Increase speed of dashboards by using existing list of assignments to
determine if an assignment type has any assignments due soon, instead of
having the assignment type perform an query for its assignments.

See #430.
Embed timeline JSON data in timeline partial

This saves a trip back to the server, allowing the timeline to be
rendered immediately upon DOM ready.

See #431.
Embed predictor JSON data into HTML.

Embed the predictor json data into the student dashboard HTML. This
eliminates the stutter when the browser returns to the server for the
predictor JSON when the student dashboard page loads. The predictor
chart is at the top of the student page, so the student is looking at a
blank page until it is rendered. They shouldn't have to wait.

Also, removed duplicate predictor `get` action from user controller.

See #431.
Embed grade distrubtion JSON in student dashboard.

Embed grade distrubtion JSON in student dashboard HTML.

See #431.
Merge branch `master` into `dashboards`.

Conflicts:
	app/assets/javascripts/application.js
	app/controllers/courses_controller.rb
	app/views/users/_sidebar_grade_distribution.html.haml
	app/views/users/_sidebar_to_do_list.html.haml
Reduce tim of `_sidebar_to_do_list.html.haml`.

Reduced the run time of `_sidebar_to_do_list.html.haml` by an order of
magnitude. Run times of 200-400ms reduced to 20-40ms by eagerly loading
assignment types in the query for the assignments for the current
course.

See #430.
Reduce time of public badges table.

Reduce the run time of the public badges table generation by two orders
of magnitude, down to under ten seconds when no public badges exist.
Removed fragment caching for public badges table.

See #430.
Increase speed of predictor assignments.

Increase speed of `students/predictor/_assignments.haml`. Speed more or
less halved.

Using the same query to fetch assignments throughout the student
dashboard.

See #430.
Merge branch `master` into `dashboards`.
Update GSI view of student dashboard.

Fixed the GSI view of the student dashboard. Not all performance
improvements from student view of student dashboard have propagated to
the GSI view of the student dashboard.

See #430.
Merge branch `dashboards` into `master`.