cleaned up LOTS of build-related stuff

There were a lot of things that were relying on transitive #include
and/or gyp dependencies that I fixed.
I also got rid of all references to libaos and a lot of references to
aos/aos_core.h and its build target.
This in preparation for removing libaos completely.
diff --git a/aos/common/network/network.gyp b/aos/common/network/network.gyp
index a41509d..4fc3a09 100644
--- a/aos/common/network/network.gyp
+++ b/aos/common/network/network.gyp
@@ -10,10 +10,9 @@
         'Socket.cpp',
       ],
       'dependencies': [
-        '<(AOS)/build/aos.gyp:aos_shared_lib',
+        '<(AOS)/build/aos.gyp:logging',
       ],
       'export_dependent_settings': [
-        '<(AOS)/build/aos.gyp:aos_shared_lib',
       ],
       'conditions': [
         ['OS=="crio"', {