Fixing Inline Editor for tag-style directives

See the commit messages for the actual fixes. It has been tested with:

- `<dc-logo></dc-logo>`
- `<div dc-logo></div>`
- `<div ng-controller="MyController"></div>`

Secondary, fixed CodeMirror inclusion
By moving this up you're executing getDirective even if it's not used. Although it may seem less organized the previous way it was more performant.