Code cleanup

Centralized logic for whether to enable Analytics.
Moved card related services/directives/templates to a card folder