Ported the hashlib.
Stomped a few little TODOs.