Implement environment passing, this is done slightly differently for each
launch method.
Also extended the testcase and provide an mpi4py script to debug environment
variables.
Tested on india, could not test on stampede yet because of unrelated problems.