made the function browserSupportsCookies available for public access as cookie.isSupported

replaced navigator with the angularjs equivalent $window.navigator, made the function browserSupportsCookies available for public access as cookie.isSupported and wrote tests to verify the functionality.