Refactor btsnoop and stack config into modules

Moves stack config out of the combined bte_config, and into
its own module.

Makes btsnoop more self sufficient and removes uneccessary
levels of indirection.

Refactor logging slightly into a (temporary) module to disassociate
from the direct calls from config. Eliminates some useless stuff in
the module as well.
diff --git a/stack/btu/btu_task.c b/stack/btu/btu_task.c
index d520039..ae0617a 100644
--- a/stack/btu/btu_task.c
+++ b/stack/btu/btu_task.c
@@ -39,10 +39,7 @@
 #include "hash_map.h"
 #include "hcimsgs.h"
 #include "l2c_int.h"
-#include "btu.h"
-#include "bt_utils.h"
-#include <sys/prctl.h>
-
+#include "module.h"
 #include "osi.h"
 #include "sdpint.h"
 #include "thread.h"
@@ -426,7 +423,7 @@
    * reset the control blocks and preset the trace level with XXX_INITIAL_TRACE_LEVEL
    */
 #if ( BT_USE_TRACES==TRUE )
-  BTE_InitTraceLevels();
+  module_init(get_module(BTE_LOGMSG_MODULE));
 #endif
 
   // Inform the bt jni thread initialization is ok.