First pass at rpc login/logout.