Cleaned up code to be extensible. Temporarily disabled hostgator. Base64 encoded cookie md5 is sent rather than the cookie value itself.