Split out blist_find_chat_by_*()

Remove a lot of copy-pasted code by moving it into separate functions.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>