Stop using deprecated md5, switch to hashlib. Closes #36