Discontinuous Galerkin framework for adaptive solution of parabolic problems