Leftover beans form the base of a rich pasta, and stray herbs become a garlicky green sauce to slather on just about anything.