[fixed] memory leaks in config & ScriptPackage::unload()
[added] PackageArchive for reading/writing (not implemented in ScriptPackage yet).