Vegetable Biryani

3 large onions, sliced 4 tblsp. butter, or Clarified butter 6 chili peppers,crushed into a paste, or 2 tsp. cayenne pepper 1 2-inch piece of fresh ginger 10 cloves garlic ½ cup dry lentils,pre-soaked ½ lb fresh green peas, shelled …