Efficient student view

This is dependent on #628

Update the student_view code to run more efficiently.
This reduces the # of queries from ~80 to <20.  Load time is reduced by ~5x