Use variables for ca-bundle.crt and GHCJS_LIBDIR.
Factor out ghcjs's libdir better.
Fix buildLocalCabalWithArgs.
Merge branch 'ghcjs-old' into HEAD

Conflicts:
	pkgs/development/tools/haskell/ghcjs/default.nix
Fix ghcjsDom's compiler detection