Adds triad tpl
Remove variables definition to get crazy
Fixes #3299
Refactors gallery template to use one tpl file
Formatting, variable cleanup
Merge pull request #3371 from aaronschachter/triad

Gallery template refactor / User Profile triads