fix delete_messages
fix reauth, allow constructing client by token
more tests, better coverage