Add XFERINFOFUNCTION

Progress event still doesn't work, though