refactor card registry to card manager and add tests
prevent card manager tests from running in phantomjs