add websocket support for both server and client
add D3 UI

1. refactoring server side code for web socket  query
2. add D3 UI