Firms are finding new ways of integrating payroll into their practices – and new ways to make it profitable.