String Principal Bundles and Courant Algebroids