Refactor file copying and caching
Improve tmp dir names
Refactor deployment functions
Refactor GHC functions
Refactor Cabal functions