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.
Bug fix in smart_dispatch.py tests
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 detect_cluster function to utils