move flickr api call to a model, update cfg to use enviornment variables