refactor the SGE job submission code and implment a local mode, need to test the SGE code once the cluster is back online

[git-p4: depot-paths = "//depot/private/jchin/HBAR-DTK/": change = 123208]
just a commit for the p4/git integration
Merge remote-tracking branch 'p4/master'