Added `md5` in the compat utilities.
Patch contributed by Remy Blank implementing a suggestion from eblot, following an initial patch from "mad"... and finally slightly modified by me (move the `hashlib` conditional import logic in `trac.util.compat`) ;-)
Closes #7458.