Add seasocks to aos externals for http_status and add test server.

This is stage 1 of the http_status project!
Seasocks requires a rather elaborate method of compiling the code
and including the web pages into the compiled executable as raw data,
so some of the stuff in the gyp system may not be pretty. We will fix
these problems up in later revisions as needed.

The web directory holds the rudimentary files for the web server (404
message, javascript library that we will use in later stages of
designing th web page interface, and icons. web_test holds the files for
the test webpage that can be accessed at localhost:8080 when the server
is running. Again, this directory, along with the content of
http_status.cc, is temporary and intended only to show the functionality
of the server socket.

Change-Id: I2ad1598ae200b526620b014db970e980f3c8a563
diff --git a/aos/build/externals.gyp b/aos/build/externals.gyp
index e14850b..8764eb7 100644
--- a/aos/build/externals.gyp
+++ b/aos/build/externals.gyp
@@ -16,6 +16,7 @@
     'libevent_version': '2.0.21',
     'libcdd_version': '094g',
     'stm32flash_commit': '8399fbe1baf2b7d097746786458021d92895d71b',
+    'seasocks_version': '1.1.2',
 
     'allwpilib': '<(AOS)/externals/allwpilib',
     'forwpilib': '<(AOS)/externals/forwpilib',
@@ -183,5 +184,30 @@
         'include_dirs': ['<(compiled_abs)/'],
       },
     },
+    {
+      'target_name': 'seasocks',
+      'type': 'static_library',
+      'sources': [
+        '<!@(find <(externals)/seasocks-<(seasocks_version)/src/main/c -name *.cpp)',
+      ],
+      'include_dirs': [
+        '<(AOS)/externals/seasocks',
+        '<(externals_abs)/seasocks-<(seasocks_version)/src/main/c',
+      ],
+      'cflags': [
+        '-Wno-unused-parameter',
+        '-Wno-format-nonliteral',
+        '-Wno-error=cast-align',
+        '-Wno-switch-enum',
+        '-Wno-cast-qual',
+        '-Wno-error=strict-aliasing',
+      ],
+      'direct_dependent_settings': {
+        'include_dirs': [
+          '<(AOS)/externals/seasocks',
+          '<(externals)/seasocks-<(seasocks_version)/src/main/c',
+        ],
+      },
+    },
   ],
 }