Rewrote lib/crypto.js and marked it as being stable. lib/crypto still implements the same API with examples. Made other small changes.