Complete tutorial for hacking the Kankun smart outlet and build instructions for the ESP8266 remote are at

http://benlo.com/esp8266/KankunSmartPlug.html

Note that after using the key fob and looking more closely at the specs of the CR2032 battery, I decided it won't work well enough for this application and now recommend the remote control be made with AAA batteries. Otherwise, everything is the same...