Indian Style Lentil Cake with Curried Onions