Barcelona's Lionel Messi has signed his two-year contract extension which ties him to the Nou Camp until June 2018.