reorganized qfile, added q_clearerr, q_freopen, q_feof, and q_ferror
finished lua qfile support