Category-Theoretic Dynamical Systems Framework