Modified some code from prasertsakd to act as a standalone webserver for the ESP8266