Added name to Output streams
Fixed memory leak and mutex unlock in Files module
Changed Output module structure to support different API implementation and named module instance