Update detach code

Remove disk from instance when detaching, but do not remove it from the
config file.
Add attach action and UUID parameter in Haskell