     "/static/css/app.css", "text/css"                                           }
   ,
   { 
+    "/static/css/jquery.mobile-1.4.1.css", "text/css"                                           }
+  ,
+  { 
     "/static/css/jquery.mobile-1.4.1.min.css", "text/css"                                           }
+  ,
+  { 
+    "/static/img/loading.gif", "image/gif"                                           }
   ,
   { 
     "/static/js/app.js", "application/javascript"                                           }

        return 1;
      }
    }

    break;

  case LWS_CALLBACK_RECEIVE:


  if( g_luiCounter%100 == 0)
  {
    Serial.println("NEW CODE - WTF");
/*
    unsigned char buf[LWS_SEND_BUFFER_PRE_PADDING + 512 + LWS_SEND_BUFFER_POST_PADDING];
    unsigned char *p = &buf[LWS_SEND_BUFFER_PRE_PADDING];

    updateBoardState();
    aJsonObject *msg = getJsonBoardState();
    char * pTempPointer = aJson.print(msg);
//    String sTempString = aJson.print(msg);
   // snprintf(buf,sizeof(buf),"%s",aJson.print(msg));
    
    p = (unsigned char *)pTempPointer;
    aJson.print(msg, &serial_stream);
//    aJson.deleteItem(msg);

    //n = sizeof(pTempPointer);
//    n = sprintf(bufTwo,"%s",pTempPointer);
    Serial.println("");
    Serial.print("n: ");
    Serial.println(n);
 //   Serial.print("len: ");
  //  Serial.println(    sTempString.length() );
//    n = libwebsocket_write(wsi, p, n, LWS_WRITE_TEXT); 
    n = libwebsocket_write(wsi, p, 2000, LWS_WRITE_TEXT); 
    */
    
    /*
    unsigned char buf[LWS_SEND_BUFFER_PRE_PADDING + 2000 + LWS_SEND_BUFFER_POST_PADDING];
    unsigned char *p = &buf[LWS_SEND_BUFFER_PRE_PADDING];

    updateBoardState();
    aJsonObject *msg = getJsonBoardState();
    char * pTempPointer = "{\"status\":\"OK\",\"pins\":{ \"13\":{\"label\":\"Pin 13\",\"is_analog\":\"false\",\"is_input\":\"false\",\"value\":\"1\"}  }}"; //aJson.print(msg);
//    String sTempString = aJson.print(msg);
   // snprintf(buf,sizeof(buf),"%s",aJson.print(msg));
    
    p = (unsigned char *)pTempPointer;
    aJson.print(msg, &serial_stream);
//    aJson.deleteItem(msg);

    //n = sizeof(pTempPointer);
//    n = sprintf(bufTwo,"%s",pTempPointer);
    Serial.println("");
    Serial.print("n: ");
    Serial.println(n);
 //   Serial.print("len: ");
  //  Serial.println(    sTempString.length() );
//    n = libwebsocket_write(wsi, p, n, LWS_WRITE_TEXT); 
    n = libwebsocket_write(wsi, p, 2000, LWS_WRITE_TEXT); 
    
    
    aJson.deleteItem(msg);
    */
    unsigned char buf[LWS_SEND_BUFFER_PRE_PADDING + 512 + LWS_SEND_BUFFER_POST_PADDING];
    unsigned char *p = &buf[LWS_SEND_BUFFER_PRE_PADDING];
  
    //n = sprintf((char *)p, "%s","{\"status\":\"OK\",\"pins\":{ \"13\":{\"label\":\"Pin 13\",\"is_analog\":\"false\",\"is_input\":\"false\",\"sensitivity\":\"0.5\",\"is_inverted\":\"false\",\"is_visible\":\"true\",\"value\":\"1\"}  }}");
//    n = sprintf((char *)p, "%s","{\"status\":\"OK\",\"pins\":{ \"13\":{\"label\":\"Pin 13\",\"is_analog\":false,\"is_input\":false,\"sensitivity\":0.5,\"is_inverted\":false,\"is_visible\":true,\"value\":1}  }}");
//    n = sprintf((char *)p, "%s","{\"status\":\"OK\",\"pins\":{ \"14\":{\"label\":\"A0\",\"is_analog\":true,\"is_input\":true,\"sensitivity\":0.5,\"is_inverted\":false,\"is_visible\":true,\"value\":0.5}, \"3\":{\"label\":\"~3\",\"is_analog\":true,\"is_input\":false,\"sensitivity\":0.5,\"is_inverted\":false,\"is_visible\":true,\"value\":0.6}  }}");
      n = sprintf((char *)p, "%s","{\"status\":\"OK\",\"pins\":{ \"14\":{\"label\":\"A0\",\"is_analog\":true,\"is_input\":true,\"sensitivity\":0.5,\"is_inverted\":false,\"is_visible\":true,\"value\":0.5}, \"3\":{\"label\":\"~3\",\"is_analog\":true,\"is_input\":false,\"sensitivity\":0.5,\"is_inverted\":false,\"is_visible\":true,\"value\":0.6}  },\"connections\":[{\"source\":\"14\",\"target\":\"3\"}] }");
  
  
    n = libwebsocket_write(wsi, p, n, LWS_WRITE_TEXT); 

   
    
  }

  g_luiCounter++;
