Education group Pearson has agreed to buy the certification company Credly to expand its offering to businesses looking to train…