Code cleanup; a bit more documentation; added some presentation components

This is part of the process of documenting the SC viewer code. Some common paging management has been factored out as a set of components.