MAX!Cube gateway discovery

This pull requests includes the contribution from @marcelrv. It enables the binding to discover the gateway without any IP provided in the configuration file. In addition the original contribution has been enhanced to discover the gateway IP even if the MAX!Cube setting section is entirely omitted in the configuration file.