Started modifying ace editor to be a directive to allow unit testing of the controller and keep the code angular style
Got functionality to the same level it was before without using a directive.
Started adding karma unit tests