more work on the recovery code for modbus
added range parameters to uniquePort()
moved uniquePort to MessagingInterface
change get_time_diff..() to return a uint64_t in all variations