Ruby bulk loader, with clever foreign key support.