fix closing streams that are passed in externally
add writeTextFile method
add DIRECT_OR_SEARCH class load method

will attempt a direct load, if a class name is not supplied, the search method is used. The class name, if found, is saved to a file that is used for direct load the next time modules are loaded

add IPluginOwned mixin