adding code to do NAT type detection, plus other changes, see comment below. 

1. updated package dependency to use newer freedom and uproxy-lib
2. Adding server code for NAT detection, and server testing client, both in python. 
3. Update javascript (typescript) code to do NAT type detection. 
4. remove end-2-end testing code. Revised version is now available in uproxy-end-to-end as freedom module. 
I set the global "quit_prog" flag, which notify the thread to exit. If not, thread will keep running and program just hangs there.