Include JS SHA1 implementation
Test HMAC auth
Minor fixes
Fix clock ordering
Output hex debug info
Fix test and docs for HMAC auth