West Ham goalkeeper Lukasz Fabianski has signed a new contract to keep him at the club until the end of next season.