How about giving badges a functionality so that you can give them on more conditions than tying them to a specific chain of quests. For instance, you could do builds like: IF the student completes any 4 of these 5 quests, then - badge. Or if the student completes Quest A Or Quest B.
Also, that would be neat for quest-prerequisites as well. Would it be possible to do?