Encoding tokens now supports a Hash payload as well as a String
Added tests for issuer and audience validation.