Those sores are from pushing at things in the cage/jamming its head into gaps. Mouth rot (stomatitis) happens inside the mouth, but it's possible that these sores have become infected if it's now swelling. Stick with an appointment at a qualified herp vet, see what they say, and ask for a culture to be done on any infected tissues before prescribing any antibiotic treatments.