wrap card view model constructors in angular factories
Merge pull request from jankuca:card_factories