First drop of work on re-engineering of this into something
shippable.
Hgc_container now compiles, tidies up a lot of the mounting work.
Start writing some ARM stuff in order to manage the mount/unmount
process sensibly.
Rewrite this to shift operations inside a managed container which
will be closed correctly upon exiting.
Rewrite deploy to use container - although currently not doing so.
Working version.

Correctly clones, configures and runs environment. Resources
are all appropriately cleaned up on exit.

Staging in of resources is not yet tested.
Automatically create mount points for resources.

Currently working for directories, but failing for files.
All mounts now setting up correctly.
Unfortunately, mounts set up outside the container's fstab
don't actually work, so this all fails despite working as it
should.

Next rewrite will back out a lot of this and re-insert it into
the container configuration stage.

*sigh*
Everything now working okay.

Woot