More modularity for run_mdrun

It's better to pass around the raw numbers of threads/ranks/processes
and only convert to mdrun options at the last minute.

Change-Id: Ibf3a8519329e0c4e8f19e795ca0cd4d001b919eb