Moved glyph code to a view, added server-side serialization of glyphs