do not pass comment data to template

instead presort it and associate it with the correct comments.
fixed bug that broke avatars with local layouts
added labelnames to template data
rewrote default layout, now it is working