veryon/services/identity: CSRFCop uses macaroons to send data along with token.
* Updated CSRFCop to take arbritrary input in NewToken.
* In ValidateToken the input is decoded and the HMAC is verified.
* Updated the identity server revocation to use a macaroon instead of maintaining state.
* Updated csrf_test to test for varying cookies instead of varying tokens.
* This also fixes https://code.google.com/p/envyor/issues/detail?id=319.
Change-Id: Ife8f7dd9533c0c0149a182179f9226253d61f3d3
8 files changed