Moved parsing of requests out of main modbus serving routine
Changed TCP server from Net::Daemon to Net::Server. Removed non-blocking tcp client code, which was untested. Tests still need to be modified.
Modified tests to work with new parameters to modbus_server routine