Added basic support for template-to-card system. Need to allow card adding/deleting via card menus.