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.