Towards a Nonequilibrium Thermodynamics: A Self-Contained Macroscopic Description of Driven Diffusive Systems