Crystal Palace midfielder Jonathan Williams has signed a contract extension which commits him to the club until the end of the 2017/18 season.