Hi,
I have published the code for the ESP8266 single channel gateway on the Things4U Github.
The draft documentation of the ESP8266 is also on the Things4U github pages.
Do not forget to use the webserver to monitor the server once it is not connected anymore to the Serial Monitor of Arduino IDE