add mixin support

fixes https://github.com/dart-lang/custom-element-apigen/issues/15
and we could then move all of that logic under this condition (since the directives wont be used elsewhere anyways)