API changes, added register API function, call weechat_init