Refactor to prepare for more task-manager/rocketbar branching

Partial/minimum-viable refactor to move card switcher state and methods onto a cardSwitcher object, and encapsulate card state & methods in Card prototype/class. Gits diff belies the work I put into trying to change as little functional code as possible while setting the stage for the next steps in implementing the new task manager alonside the existing behavior.