Lots of bugfixes and patches from instantbird

Also correctly retrieve buddies photos from new url.
This doesn't include ap-positionning.