Moved ViewerBase? class out into its own header and source file.
Improved the support for stats collection in CompositeViewer/StatsHandler?.