Update ChangeLog and upgrade version to 5.1.