Anatomy of the AGN in NGC 5548: Discovery of a fast and massive outflow