Replace hashlib with crypto

Removed the requirement for hashlib because it no longer works well on node 0.6.