Added attribute support for directives

Means we can go either route with IE 8 (either use elements or, where
transclusion is required, attributes). Also fixed a problem with the
transclusion in the yes/no question.