Organize text code in subdirectory

This is helpful in general and also will help prepare for a cleaner and clearer merge of changes from the harfbuzz branch (where this type of organization started)