small fixes

- fixed server and producer for supporting re-connection for pending
consumers
- refactored code for server
- set log canvases to be hidden by default
- added information for currently used media devices
- added saving server IP address to the cookies