Anatomy of the AGN in NGC 5548. II. The spatial, temporal, and physical nature of the outflow from HST/COS Observations