HPCC-9481 CSV record definition auto discovery

Rework aftewr first review.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>