This video gives insight about the esp8266 esp-12 serial module wifi, pinouts, how to use with the arduino app which comes with the wifi module.
check out the books on using esp8266 on arduino
http://www.amazon.com/Nodemcu-dev-kit...
book using lua
http://www.amazon.com/How-program-ESP...