added itchyparse app; moved some common code to itch_common.c