Fix bugs

1) Make bootstrapping from AgentActions more robust.
2) Adjust default config to use ports 17000-17002
3) Adjust agent startup to default to not default to a broken port
4) Cli fixes