Swansea winger Nathan Dyer has signed a new four-year contract that will keep him at the Liberty Stadium until July 2017.