Get active quests helper, and prereq checking for npc quest lists.

Once the database is a little more stable, I'll get the schema pushed.
Obviously this prereq code requires an eval because we're storing some
expressions in the database row.  Hmm.