First draft of (ajax) request handler