Add back api_url form element and fix some l/url calls
Stop using l() in query log. Build own links as I don't see how to do that with the API.