Preheat the oven to 375 degrees. In a pan, saute the onions in oil until browned and caramelized. Put the cream cheese in a large bowl and pour the hot onions over to melt. In the meantime, in a large pot of boiling water, cook the noodles until done. Drain and add to the mixing bowl. Stir in the raisins, bouillon then the cottage cheese and sour cream. In a separate bowl, beat the eggs with a fork. Mix into the noodles. Season with salt and pepper. Lightly oil a casserole and add the mixture. Dot the top with the butter. Bake for 35 to 40 minutes.