Minor
[buffer] Move buffer serialization code to a new file
[buffer] Minor
[buffer] Start implementing buffer deserialization
[buffer] Fix serializing of buffer with invalid direction
[buffer] Implement buffer deserialization for format=text

Using a ragel machine.
[buffer] Implement buffer deserialization for format=json

Using a ragel machine.
[buffer] Better parse glyph names