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/scoped_fd.h b/aos/common/scoped_fd.h
index e654d3d..f31ffa5 100644
--- a/aos/common/scoped_fd.h
+++ b/aos/common/scoped_fd.h
@@ -1,4 +1,5 @@
 #include "aos/common/macros.h"
+#include "aos/common/logging/logging.h"
 
 namespace aos {