By rblanker: Added support for secure cookies using the connector.
By rblanker: Added missing checkLanguage() function to main SDK class.
By rblanker: Removed unused code.