Imported initial directory implementation from terminal-app.
Plugin: export shell program to QML.
Added --workdir and --program flags.