Heat 1 tablespoon olive oil in a large skillet over medium high heat. Sauté the onions until soft and translucent, about 5 minutes. Add the garlic and cook for another minute. Squeeze all the liquid from the spinach and add to the onions. Add 1 teaspoon salt, ½ teaspoon pepper, the oregano and the lemon zest. Raise the heat to high and cook until all the liquid is gone, about 1 minute. Take off the heat and let cool whole preparing the chicken.
Butterfly the chicken breasts by laying each one flat on a cutting board, placing one hand on top and with the edge of a sharp knife parallel to the cutting board, begin cutting down the length of the side of the breast. Carefully slice the breast in half width-wise almost to the other edge. Open up the chicken breast like a book.
Add the feta (if you are using it) to the spinach and stir to combine. Stuff each chicken breast with one forth of the stuffing, letting it overflow at the edges. Drizzle 1 tablespoon of olive oil in a rimmed baking dish and place the stuffed breasts on the baking dish, squeeze the lemon juice over and top with the chopped pistachios. Top the pistachios with a good pinch of salt and pepper and drizzle with 1 tablespoon of olive oil.
Place the halved tomatoes on the other baking dish and drizzle with the remaining tablespoon of olive oil, add 1 teaspoon salt and ½ teaspoon pepper. Toss to coat.
Put both baking dishes in the oven and roast for 20 minutes or until the juices of the chicken run clear. Top the chicken breasts with the roasted tomatoes.