Updated viewer to use database and load in course.

Minified viewer images.
Moved and removed some files.