Added text helper to add rel="nofollow" to any a href tags

Some php docs for auto complete and created fancy new regex to add rel="nofollow" to a href tags. Also, converted a few calls to use the getter function to get the messageID instead of directly accessing it.

Fixes #691, @aembler I know you said the bottom of the editor function, I stuffed it at the top so that I wouldn't have to deal with the multiple return statements, I suppose it could be safely moved directly below the htmlawed stuff but it honestly probably wouldn't have any effect anyway. Either way I figured I did the "hard part" you can move the function call where you please now.