Separated AVS I/O management from raytracer main application, so it can be used for other applications.