Fix options dialog re-opening bug in IE

In IE, the options dialog would work the first time it was opened, but subsequent attempts to open it would be greeted with an empty form (i.e. current settings not displayed).
Add "green to red" colour option

Fades from green to red, rather than fading a single colour in/out.
Factor course start time into date range chosen
IE fix for radio buttons in options dialog

IE doesn't like the name being set via .attr() - it causes the radio buttons to be stuck and unable to be changed.  Setting them inline in the tag created with $() instead fixes this issue.  Using .prop() might also work, but hasn't been tested since this works without chaining another method.
Add books in addition to resources

Added separately as there's already a lot going into "resources".
Code cleanups (mostly whitespace and indenting)

Tidy up surplus whitespace and bad indenting (mostly tabs instead of spaces).  Also remove a couple of block comments which are confusing (especially if syntax highlighter is not working as it's JS in a PHP file) and commented-out block comments (which are confusing no matter what).
Use new assignment module ("assign") instead of old one ("assignment").
Switch assignments to pull grades from the gradebook

Assignment grades feed into the gradebook, but gradebook marks do not feed back into the assignment module.  Gradebook is the source of final grade info, so Gismo should pull from there rather than the assignment module.