Use qc_init(...)/qc_end() for initializing QC in test-programs.
Update gateway and tests to initialize maxbase using maxbase::init(); instead of initializing individual components.