Support MAGPIE_STARTUP_TIME & MAGPIE_SHUTDOWN_TIME environment variables

Remove SBATCH_TIMELIMIT requirement and removes fixed startup/shutdown
time assumptions.
Do not run job if pre-run script MAGPIE_PRE_JOB_RUN exits with non-zero
exit code.

In addition, move script checks into magpie-check-inputs.