Improve field and row data parsing

Parsing is now done by packets and with a NIF library.
Also some minor improvements.