added websocket support and changed the routes which require the user to be logged in for vursions