What I want to do though is have the ESP8266 also server as an AP that a client can connect to and get a webpage served. This will then allow you to setup the wifi connection via the webpage/AP from the ESP8266. For example, if anybody is familar with Chromecast, when you get a new chromecast, it is an AP that you can find on your network and connect to first so you can access it and then configure it to connect to your network. This will make it easy for an end user to connect to a wifi network using a web based configuration that is served by the AP/ESP8266. For example, you want to connect to a new network, simply connect to the known AP SSID that is served from the ESP8266 so you know how to access it anytime and then view the webpage which will allow you to then see/edit the wifi settings, see list of networks, connect to network, etc...
Any thoughts or guidance would be appreciated! Thanks!
Mike