Allow overriding API and websocket URLs