reorganize and parameterize decisions (whether start swank/repl, whether create swank port file, ...)