Tiny code style rewrite
Improve public key extractor.

Add a way for extract public key from DOM nodes.