Add unit testing framework.
Add Makefile with 'test' target to run tests.
Remove Makefile 'test' target from default target list.
Wrap script contents in main() function to assist unit testing.
Add '-h' or '--help' option.
Remove test script name output from 'make test'.
Factor out user/host/port parsing into functions for unit testing.
Add unit tests for user/host/port parsing.
Remove redundant user check.
Remove left over lines.
Fix quoting for variable substitution.