QuickLook in Mavericks would appear to be using AV Foundation and therefore be limited to the Apple supported formats, i.e. not AVI.
Apple have deliberately chosen not to reveal to thirdparty developers how to write AV Foundation codecs becuse they want everyone to use H.264 etc. i.e. AV Foundation formats as their video format. If they allowed thirdparty codecs to support old formats then this would allow people to be lazy and leave their videos unconverted.
Why do Apple want people to only use the new(er) formats? Apart from making their code simpler, it allows Apple to optimise processing these handful of formats both for speed and power. Apparently Apple have provided a library called QTMovieModernizer which while it does not allow playing older formats does allow them to be converted. However from what people have been saying here it makes the files much bigger. There are plenty of thirdparty tools to convert formats many are free, and in some cases could do things more simply like taking an FLV containing H.264 and simply put it in a new MOV envelope without having to reconvert the H.264 video itself. In some cases VLC can do this for example.
In conclusion it would appear you have no chance of getting AVI etc. supported by QuickLook but by installing QuickTime Player 7 and Perian you can play them still.
It might be worth reading the following.
http://asciiwwdc.com/2013/sessions/606
Note: While I see Apple's reasoning I would still like AV Foundation to be able to support more codecs.
PS. In case you think it is any better on the Windows side of the fence, when Microsoft launched Windows7 they introduced Media Foundation as an intended replacement for DirectShow filters. This could be considered to be equivalent to Apple replacing QuickTime with AV Foundation. Whilst I believe Microsoft have released the details on how to write Media Foundation codecs, the reality is that practically zero have been written so far and we are now on Windows 8.1! It is still possible to use DirectShow filters in Windows Media Player (thankfully) and hence I can still use the Apple Lossless DirectShow filter to play my music files.