Merge pull request #8 from alphagov/extract-environment-setup

Extract environment setup.
Stop redirecting all IO to log.

We use the logger directly now.