Adding ability to set environment variables.

Hey Taylor,

I needed this functionality so I hope I'm not stepping on any toes here. Let me know if you'd like me to make some amends and I'll do my best to oblige.

Thanks,
Richard.