Allow specification of memory usage by passing in 'mem' parameter to extra_params. Implemented for LSF, SGE, PBS, Torque and SLURM