Add resources and websocket server.