Fix whitespace in test/identity.js.
Add tests for verifyPayload, extractPubkey

Fixes methods in the process.
Fix minor whitespace issues.
Move tests all under own 'it' blocks.

Jasmine docs could be better...