This patch adds the Bluetooth utility funtions and socket type declarations to a new header src/bluetooth.h, allowing to share it between core, and plugins.