Upwork beat Q1 earnings estimates but cut full-year revenue guidance and announced a 24% workforce reduction, sending shares sharply lower.