More session fixes
Clean up the session code a bit
lw_stream_write_file: Abort if the file could not be opened
Server: SSL clients were not added to client list
Unix: Use /dev/urandom instead of /dev/random