The easiest way to serve .m3u files (I remember hacking Edna (nice python mp3 server) to do it) is to just serve a "file" with a .m3u extension.. the mime type is audio/mpeg-url and the file syntax is just one URL per line.