Reorder defs
Extract connect-string function
More reordering + make testable fns public
Fix missing args in connect-string
Tests for repl
Use user/getenv to allow mocking in test
align repl host resolution with port resolution
Fix options-for-reply
Better error message for unknown subcommand
Test options-for-reply
Clarify docstring
Formatting in test code