pidgin/pidgin

When a Contact is added to a Person set the Contact's Person to that Person.

Also fixed a leak in the unit tests that valgrind wasn't seeing for some reason.

Testing Done:
Ran the unittests under valgrind.

Reviewed at https://reviews.imfreedom.org/r/1863/
PURPLE_HISTORY_SOURCES = [
'purplehistorycore.c',
]
purple_history = executable('purple-history',
PURPLE_HISTORY_SOURCES,
dependencies : [libpurple_dep, glib],
install : true)