Optimizations and features added to docket.

Features:
  Adds badges at the top of every day's panel, displaying assignment,
exam, and event counts.

  Links in event display.

Optimizations:
  Everything (day_{assignments,exams,assignments_and_exams,events,items})
is defined ahead of time and is all just one value that gets used
instead of querying the database over and over again.