Some more WIP

Convert unit tests to use gocheck.
Work on driver interface to allow configuration of envs.