Former England winger Andros Townsend signs a two-year contract with Everton after his contract expires at Crystal Palace.