Trim href/src paths when possible in HTML

This improves payload sizes very slightly for all static HTML files.
Fix reference to update path

This needs a trailing slash so that the 404 handler does not match
things like /updates/ for the "no such add-on version" message.