medium: ui_resource: Fix race in start/stop/manage/unmanage (bnc#877640)

Instead of the resource commands using their own custom CIB commit command, use the cib_factory to modify and commit the metadata changes induced by start/stop/manage/unmanage. This enables patching for these commands when Pacemaker supports it.

Without patching, CIB modification is prone to race conditions where parallell CIB changes are overwritten by crmsh.