Adding comment formatting to profile page, tightening code

No need to pass in the comment and previous revision; we can get both of those with just the revision.