Add a utility class to decode payloads into Values.

R=fdoray@chromium.org

BUG=

Review URL: https://codereview.appspot.com/61110043