Bundle Gerbes, D-Branes, and Smooth Open-Closed Field Theories