factor out config, rename config/state files
move Config back into msgbox, rename to PeerConfig, rename State to PeerState
add unfinished client