Lie groups, principal bundles, and characteristic classes