Changed wid to use uniqid and underscores.  Added url encode to proxy js...

... method.

I changed the wid code to consistently use uniqid() and underscores.
Also I added a encodeURIComponent call to the proxy method you added.  If you don't encode it only the first query string parameter gets passed on, the other parameters are picked off by php as parameters to proxy.php