Prerequisite scanner

Debs and I started implementing the prerequisite scanner in today's
meeting.  It's got a bug or two, and still needs the query functionality
in it.  I'm still working on it.