Support custom environements [closes #3]

It also won't bomb on unrecognised environments, it will just set some
reasonably safe defaults.
Release 1.7.0