karma updates, testing, start of directives refactoring
Merge pull request #678 from protherj/content-editor

karma updates, testing, start of directives refactoring