Cleanup and isolate options from threads

 - Remove unused fields of some types
 - Re-type properly the infolist for the transfer rate computations (remove
 casts from code, cleaner)
 - Add config flags to thread context, removing the need to access options from
 concurrent threads.