Extract transfer code

A step towards making utox sources more modular. 

Most of transfer-related code was moved out of the clutter of tox.c into tox_transfer.c. Everything actually useful from it is exposed in transfer.h. No behavior-affecting changes are introduced.