The kernel perspective on dynamic mode decomposition