Add getUsername method in class Proxy.

I tested the new method, and it works for me. It assumes that the subject of the proxy contains the username in the first CN=....