flickr.rb: fix "[ERROR] flickr.rb: failed to get photo."

Do not read zero-byte cache, and delete cache if SSL certificate
verify failed.
js/flickr.js: use https for flickr api