Salt Lake City based provider of payroll APIs raised $40m in Series B funding led by Mercato Partners and Greylock.