Use command templates for batch system commands

Improve user interface for command template for `at`.
Merge pull request #1201 from matthewrmshin/refactor-job-submit-2

Use command templates for batch system commands