Update gateway and tests to initialize maxbase using maxbase::init(); instead of initializing individual components.