Ouch! That's definately no fun.
I was fortunate enough to get handed down my dad's first attempt at a
stereo cabinet, which has a similar problem. Now that I'm building my
OWN stereo cabinet, one of the mistakes I didn't make was dealing with
the component access... sliding rear doors, 25" wide openings, and
adjustable height shelves...
Now if only I could have kept that router stable when I was finishing
the trim. <sigh>
Oh, and a tip for putting your trim back up, which someone here passed
on to me: Try using masking tape to hold your trim up while it's
gluing. You can avoid using nails, and the tape comes off nice and
clean. If your trim is warped, though, you'll probably have to use
nails to straighten it out again like I did.