Make quiz more generic

Make quiz generic database instead of specific. Now can use the
generic question collection. Also, made it so that the quizzes are
rendered based on type. make sure that templates set the types
to the same as the template name or it won't work!