Improvements to widgets, beginning to stub out jasmine unit tests for directives