Hi Gianni,
congratulations for your project! Very interesting.
If you want you can take a look at our project Freedomotic.com as software control for your system.
I noted that it's based on http commands so it's simple to create a specific plugin.
This is a code example for an ethernet relay board using a similar communication protocol Google Code Archive - Long-term storage for Google Code Project Hosting.
Regards