Updated cookie spec initialization code to use the most up to date providers; removed references to deprecated classes