The Cosmic Microwave Background: From Detector Signals to Constraints on the Early Universe Physics