Refactor job_script handling to load script and slots shell logic from external files.

per advice of @james_taylor.