I'm going to give it a go myself shortly but it would obviously be a lot easier if its been done before
https://github.com/esp8266/Arduino/pull/972
https://github.com/esp8266/Arduino/comm ... f8caa1b3fa
https://github.com/esp8266/Arduino/issues/962
Currently working on integrating my ENC28J60 stack (because it needs its own) and Sprites httpd project html cgi functionality, so as to seamlessly serve the same webpages over hardwire connection as wifi, whatever you chose. At this point the integration is the hardest part as I'm trying to mimic the esp SDK in some aspects, but if I get it right it will be rather nice.