developertools...dev_autodb: Improved deadline and math handling.
devilry_student: Basics required to detect when math is rendered.

This should be re-usable for all apps using mathjax (see #425).