Adds tabbed navigation to explorer for courses / events / assessments. Moves SQL out of curriculum explorer into it's own class, and moves counting functions out of functions file into model.