Allen Hurns agrees to deal with Cowboys