Move get_config to BaseInstance.
Add expand_path utility function.
Catch socket errors in init_ssh_key of plain instances to print additional info for debugging.
Instances can provide a get_port method to return a default port.
Make debug command usable for instances that don't have a startup script.
Use splitlines string method.