fix ordering of running resources

separate global stuff (webapp deployment, globar dirs creation/removal) from
host-instance specific