abstract encode methods out into it's own file, more syntax updates.
abstract flickr methods into it's own file