add mixin support

fixes https://github.com/dart-lang/custom-element-apigen/issues/15
funny this is so similar to: https://github.com/dart-lang/polymer-dart/blob/master/lib/src/build/utils.dart#L24

Maybe this should move to some shared package like quiver some day...