Only ns_register_adptag if we haven't already registered it. This makes debugging template tags much easier, because you don't have to restart the server each time.
register_child_type would only register one type per parent since itignored relation tag when checking if the relation existed.is_valid_type failed with more than one type since it wanted to countmax_n but did not sum.needs an upgrade script.
chaing catalog import proc so that import for uninstalled packages is not an upgrade, also if the version number in the catalog file is lower than that of the package it's not an upgrade
Made the form element focus mechanism safer by checking if the element exists before trying to focus it. This avoids annoying javscript errors from the browser.