Updated server mode, server now stores streams and clients in global variables.
Removed temp files.