[newclient]: Added logout, some tests, some in-progress issue fixing