fix #71;make proxy.setToken thread-safe
fix #76; add get[Local/Remote]Address
#76; add get[Local/Remote]Address test; fix some protected methods