updated karma config, update CreateCtrl tests, added Features directive tests

set karma to compile html templates,
removed feature tests from and added browser tests for CreateCtrl,
replace window object with $window service,
added UI state-change tests for Feature directive
Note: unable to test methods defined in directive
added tests for facets and editable directives, refactored features directive