Improve viewer clip class name list generation.

Wildcard entries in the clip class name list are now automatically
generated. Also refactored archive utility functions, creating new
module `archive_shared` that can be imported by various archive modules
(`archive`, `station`, `detector`, etc.) at top level without causing
import cycles.