Only copy when pointer isn't NULL in get_friendcon_public_keys().
Fixed bug where group chat would see connection as offline when it was online.

Clarified something in the docs.
Fixed possible threading issue.
Fixed possible threading issues.
Fixed possible threading issue.
Fixed possible threading issue.
Fixed possible threading issues.