use ssl endpoints for Flickr

Also, some whitespace cleanup