When you gave him a
bath, did you do the sugar water? Also, the pink exposed tissue sounds very much like a rectal prolapse. Keep a close eye on that, you don't want it hanging out where it can dry up, which would make things far worse. Sounds like he may be impacted and is prolapsing while straining to poop. If he poops and pink tissue remains outside the vent, you can apply a small amount of preparation H (GENTLY-DO NOT PULL ON ANYTHING STICKING OUT OF THE VENT PLEASE), then wrap his lower body in moist papertowl and try to get him to a vet ASAP. Try the pumpkin baby food or sweet potato baby food. Dragons like both and the softer food will be easier for his system to pass. Add the oil as Twobeardieguy mentioned to help lube his intestinal tract and get things moving. It can take a few days for an impaction to pass the system, so keep up the warm baths as well to help stimulate his bowels. If he's impacted, then we need to look at your husbandry to figure out what is causing it in the first place to prevent it from happening again. It would be helpful to give us a run down of your viv set up: type of lighting, temps on cool and hot side, substrate your using (BTW, for now I would suggest using newpaper or paper towel as it's less likely to irritate the vent area of any prolapsing tissue), what foods you are feeding:types of greens, types of feeders and how much/how often: This info will help us help you.
Let us know how he's doing!