Moving enterprise apps to and from clouds