Fixes for config changes

Fixed websocket to actually create a TLS server when the option is
enabled.
Fixed default-config.js file.
Added fix for UNABLE_TO_VERIFY_LEAF_SIGNATURE error that was
rejecting client connections.
Refactored proxy module and moved variables into the "clientSocket"
object to prevent interference when multiple connections are
established.