Merge pull request #1 from SMART-Lab/master

Pullback changes from main trunk
Added part 2 of the resume feature.

See #24.
Added subparsers and support for RESUME and LAUNCH mode.
Added reset_running_commands to CommandManager and appropriate test.
Fixed the way I was throwing exception.

There is probably a better way to do this.
Added and fixed smart_dispatch integration tests.
Fixed bug in unittest.
Better error message on excaption in smart_dispatch.py

Also fixed another bug in test.
Added check in reset_running_commands and cleaned some tests.
Fixed typo
Yet another test fix.
Added support for UID tag.
Bug fix in smart_dispatch.py tests
Refactored function replace_uid_Tag
Merge pull request #40 from MarcCote/add_uid_argument

Added support for UID tag in arguments.
Used the "dest" option on subparser for cleaner subcommand handling.
Used better Exception type in get_job_folders and cleaned up.
Merge
Merge branch 'SMART-Lab-master' into resume
durp
Merge pull request #37 from mgermain/resume

Finished the resume feature
Added pbs_generator class