Implementing --passenv feature to solve security weakness (#4)

I think this one is ready to go. Squashed 4 minor commits to make for a nice log.