Handle deprecation of the 'md5' module.
Review Request #998 — Created Aug. 25, 2009 and submitted
Handle deprecation of the 'md5' module. Since 2.6, the 'md5' module has been deprecated in favor of the 'hashlib' module. These have almost the same API but not quite. This change tries first to use hashlib and then falls back on md5.