Move tagging functionality to its own CS file.

Keep only global stuff in main.coffee, and move tagging-specific
functionality out to a new tagCard.coffee.

Test plan:

- Tested usermenu functionality
- Tested tag boxes
- Tested for [fixed] bug where you could tag boxes over card view.