Bridging autoencoders and dynamic mode decomposition for reduced-order modeling and control of PDEs