Cards' Matheny, Mozeliak get contract extensions