Increased number of friends tested in tox_test.
Added custom packet functions to public tox api.

This should make it easy for people to use toxcore to power many
types of networked applications.