main code

now can:
1) connect
2) send ip by "ip" message
3) reconnect when network disconnect
4) always auto-gen client resource
5) permanently require workable api.wipmania.com