Caitlin Cook’s “The Writing on the Stall,” a funny, poignant musical now at the Soho Playhouse, is the creative culmination of a decade spent documenting scrawls in public bathrooms.