libembroidery error logging.
libembroidery API cleanup.
stitchcount bugfix.