FileLoader: loop around g_output_stream_write()
FileLoader: small bug fixes