ncm-spma functions: new implementation (preliminary) of pkg_add, pkg_ronly and pkg_del
(+ pkg_repl changes/fixes)