I found some nice WiFi outlets on the market a while ago - produced by Kankun.
Only disadvantage was that they come with US sockets - so EU adapter was needed.
See more details here: http://www.anites.com/2015/01/hacking-kankun-smart-wifi-plug.html
Unit runs a simple stripped down linux. Here is the script which I installed on every unit after I was able to log in
https://github.com/kooiot/kankun
So now I am able to swich on-off them with simple http calls:
Example:
http://1.1.1.1/cgi-bin/relay.cgi?on
more later-----