use rpc.c and create_rpc_client
add usage() and -T (TCP) argument
Initialise hints to all zeros, make getaddr errors clearer