Added SSL support, non secured for now. Properly stop when disconnected from everything.