The Activity and Variability of the Sun and Sun-like Stars. I. Synoptic Ca II H and K Observations