I am playing around with a simpler version of this; just google "github terrye esp8266". This version is a broken snapshot and my current on dev version is more complete. What I can do from a PC is plug in the ESP8266 to flash the nodeMCU firmware and then from the command line type in an esp8266 command which downloads a bootstrap to the module over the uart. This bootstrap then calls back to a listener on the PC over the wifi to lod the initial config, and once loaded there are commands to download new modules execute functions etc.
Still a work in progress and I am off on hols for over 2 weeks and I am not taking my dev PC with me