Extract InteractiveRunner class from CLI.

This paves the way for a non-interactive mode.
WIP: Execute gitsh scripts