Made many relation containers iterable

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added countAttributes to IAttributeContainer and countClasses to tags

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Template widget doesn't render container div if it is generic

Signed-off-by: Tom Wright <tom@inflatablecookie.com>