fix api_proxy

Now that we have nine.buildbot.net, we can use api_proxy to debug the UI
based on real data

I created this for andras, but forgot to update it.
we are in a if __main__, so this is the global scope.