[mms] Added argument to the 'trailer' hook to allow HTML trailers to be generated.