In a new memoir, Dan Peres reckons with his addiction and captures the halcyon days of a media empire.