San Francisco based payroll, HRIS and benefits API startup raised $40m in Series B funding led by General Catalyst and Menlo Ventures.