Families of Dirac operators, boundaries and the B-calculus