move cache installation to ghcjs-pkg, move cache functions to Compiler.Cache in library