Add optional server, test websocket chat

Add Cross domain requests
Small fixes