threaded version. Very experimental
Merge branch 'aida_packet_thread' of https://github.com/fcrescio/eudaq into aida_packet_thread