Revert "Twitter search channels" to sync with master

This reverts commit f370af0a95ab803486705d32df859fc947140a12.

It never landed in master because it 'leaks' contacts, as in they never
get removed from the channel/blist until the account gets removed, which
becomes a big issue with high activity hashtags.

Sending it back to review, will apply again once it's fixed.
Use glib functions for base64 decoding/encoding

This fixes several coverity warnings about 'tainted data index sink' and
a fixme about thread safety in the old base64_decode implementation.

Had to adapt the code that used base64_encode_real:

 - oauth.c: different character set order, but it's for the nonce so it
   doesn't matter
 - libyahoo2.c: used as part of the auth, changes "+/=" into "._-".
   Fixed by encoding first the usual way through glib, then replacing.