Fixes to plugin.xcom.listNamespaces
small clean-up to remote.php