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/atom_code/camera/camera.gyp b/aos/atom_code/camera/camera.gyp
index b8e8dd3..270fb4f 100644
--- a/aos/atom_code/camera/camera.gyp
+++ b/aos/atom_code/camera/camera.gyp
@@ -7,7 +7,6 @@
         'jni.cpp',
       ],
       'dependencies': [
-        '<(AOS)/build/aos.gyp:aos_shared_lib',
         '<(AOS)/common/network/network.gyp:socket_so',
         '<(AOS)/common/common.gyp:timing_so',
         '<(AOS)/atom_code/messages/messages.gyp:messages_so',
@@ -15,7 +14,6 @@
         '<(EXTERNALS):libjpeg',
       ],
       'export_dependent_settings': [
-        '<(AOS)/build/aos.gyp:aos_shared_lib',
         '<(AOS)/common/network/network.gyp:socket_so',
         '<(AOS)/common/common.gyp:timing_so',
         '<(AOS)/atom_code/messages/messages.gyp:messages_so',
@@ -65,6 +63,7 @@
       'dependencies': [
         'buffers',
         '<(AOS)/atom_code/atom_code.gyp:init',
+        '<(AOS)/build/aos.gyp:logging',
       ],
     },
     {
@@ -76,6 +75,7 @@
       'dependencies': [
         'buffers',
         '<(AOS)/atom_code/atom_code.gyp:init',
+        '<(AOS)/build/aos.gyp:logging',
       ],
     },
   ],