json_decode(input) renamed to decode_digest_and_data(json)
decode_digest_and_data conditional refomatted for clarity.
RSpec upgraded to 3.1, specs use expect not should.
json_parse extracted from decode_digest_and_data.
json_generate extracted from encode and digest_for.
SignedJson#encode minor refactor; extract variable.