Adding field to_string/from_string methods that encode to JSON/YAML strings.

@e-kolpakov You are right, but I'm explicitly instructing JSON to sort the data when dumping.

See: https://github.com/open-craft/XBlock/pull/2/files#diff-cef7a9b520121ab3e6f4e83a4ca297c7R537