implement json.Marshaler and json.Unmarshaler interfaces
Merge pull request #7 from cenkalti/json

Implement json.Marshaler and json.Unmarshaler interfaces