added authentication
use hmac.Equal
updated api doc, fixed error reporting
missing error return
Merge pull request #14 from PacketFire/api/auth

added authentication