[micro_ai] tag: move serialization of cfg table into add_CA() function

This has the advantage that we can still add information to the cfg at
this level (namely the CA name, which gets checked for uniqueness here).