TPort is now uint16 and other small sockets fixes.
Implemented boolean socket options.

Added reuseAddr for httpserver and scgi.