If you want to use the ESP8266 module as just the wifi then you would keep its AT firmware.
One library you can use is GitHub - ekstrand/ESP8266wifi: ESP8266 Arduino library with built in reconnect functionality which is similar to the Ethernet shield library.
or
.