Liverpool have confirmed that Brendan Rodgers has signed a new long term contract to stay at the club.