Initial glyph segmentation

Prototype script to generate the glyphs present on an image, given an
image and its corresponding mei file. Still in development and not
hooked up to the web interface yet.