Document SimpleFieldSet
Preliminary untested support for key==<base64 encoded value>
Add tests and factor out writeValue(), which isn't quite as straightforward now.
Merge branch 'encode-simplefieldset' into next
Fix bug in encode-simplefieldset.