Tiled Gallery: Remove unnecessary margin style.

Margin is defined both in style attributes as well as CSS. No need for a duplicate declaration that will anyway be overwritten by the !important marked CSS rule.
Tiled Gallery: Extract layouts to strategies.

Extract different Tiled Gallery layouts to strategy objects so that the source is easier to navigate.
Tiled Gallery: Extract HTML generation logic.

HTML generation logic is separated into templates and partials.
Tiled Gallery: Move function and make static.

Moved a function that builds the extra data for containers (for carousel) to the plugin file, since it is not in the responbility of the layout to build it and doesn't belong there.
Photon: Tweak data-recalc-dims regex.

The regex adding the data-recalc-dims should not care how many whitespace characers there are between the closing tag and the possible following link tag.
Tiled Gallery: Split data-original-size getter.

Split the function that produces the string into data-orig-size (for carousel) into two. When meta width and height are separated, we avoid having presentation logic pieces in the model object.