Gadugadu local contact storage (ticket #917)

Patch originally by Michał Siejak, adapted for 3.2.1