Port of Emacs erc-bbdb.el from erc-5.3-extras to BBDB3