Vid 1582

A lot of the code in this very long method was moved into other methods (e.g. everything having to do with link attributes and the linkAttribs array were moved into getVideoLinkAttribs().  A lot of this code is super interconnected so there remain things uncollected.  This will hopefully be corrected after we collect data on how thumbs are used in the wild.