Fixed variable scope for `key`
Reverted changes for a more compatible solution

Previous commit would have broken `sign()` method.
`key` can now be set by supplying it alongside `validateFunc`.
Raised `expiresInMinutes`
Merge pull request #1 from afkm/master

Fixed variable scope for `key`