@mentions

This builds on the code supplied in #306, but creates the mentions at display time, rather than at submission time.  That means old data with @mentions will still work, and if we want to do some markdown changes or something in the future we won't have to pull our hair out.

I've also got some fixes in there to the formatUrl function..  It was breaking, and I couldn't dev without fixing them...  Hope that's fine.