LogMgr and DirMgr added to framework, minor other changes to plugins

SCRIPTNAME set as a global script name for external scripts. They can be
recalled after just using the name