Makes meets_deadline errors more useful.

Adds something to tell you the program module and the bit that caused
the deadline error.  Also makes the teach and learn deadline pages more
similar and hopefully a bit more understandable to users.  Fixes #279.