Refactored catalog creation, destruction, and loading to be more
coherent and easier. Module functions exist for creation and destruction
of catalogs and the Catalog class is used to connect and load to
existing catalogs.