Patches to make resource agents use codename instead go hostname and minimise use of crm_* commands