Move everything we are sending to the prolog or epilog in the slurmd to
a common structure instead of multiple parameters to the function.

Hopefully this makes adding new options easier.
Make sure we protect a variable.