SWITCHYARD-1500 add lifecycle support to gateways