Move last of SearchHelper into DocumentDecorator.

Also, clean up one presentation method out of the Document model
(the html_uid) method, now a general-purpose sanitizing method
declared on String.