Added method getEnvironment used to derive the implicit environment for
a process. All processes but active processes (CustomProcess'es) simply
reply with themselves - active processes reply with their given
environment.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>