Added web server code and streaming support