Permalink fix and another fix

Hi!

I was using the UnedditReddit extension, but it seems to break the Permalink button. I've forked and made a few changes so it doesn't.

I also made a change so that if you click "unedit" or "undelete", it displays "unediting..." or "undeleting..." while loading the unedited/undeleted comment from the server.