libembroidery API cleanup and stabilization.