Add bluetooth and move some parts to a common package