Fixed possible race condition during character select

Also switch to newest API for smaller chat history response format.