Hibernian have completed the signing of midfielder Kevin Thomson, who returns to Easter Road six years after leaving the club.