From butter to broad, beans are now the ultimate foodie choice. Here’s how they became the ingredient of the moment