FIX: httpSetCookie and redirections for IPv6 addresses

Fix for IPv6 systems
Fix for numerical IP addresses
Add option to suppress cookie domain by setting domain parameter to an empty string
Add parameter to httpGetSecurityToken, httpAddSecurityToken to recreate security token