Added isSecure() method
Added isXmlHttpRequest() method