mbcollect is now interruptible in server mode

- removes useless collect.h
- export modbus_t
- change args order in collect_poll
Close socket before removing file in recorder
Unit tests for slave mode