build-parser: Functions are only supported by bash

This confuses distributions which don't use bash as sh
Move sandbox setup into initGhci

As it turns out, setSessionDynFlags calls initPackage. Unfortunately,
initPackage only reads the package database the first time it is called.
Therefore, we need to set extraPkgConfs before we call
setSessionDynFlags for the first time in order for the sandbox to be
used. Since initGhci is the first caller of setSessionDynFlags, we make
it responsible for this.
Add option to set GHC verbosity
Merge pull request #255 from bgamari/ghc7.8

GHC 7.8: Fix sandbox support  and some debugging conveniences