Only send autojoin on command-line connect
add send_raw, remove send_ping, other fixes