Cache views.

Created two views that encapsulate the cache keys for students and
courses. May amalgamate them into a single view to save a trip to the
server, or have the student view include the courses view, in the
future. For now, it is better than having SQL in controllers.

See #528.