Chore : create AceEditor service

Chore : create AceEditor service

1 - I moved ace editor instantiation to a factory service. This will make unit testing simpler against these controllers. I think in the long run we want to use a [directive for the AceEditor](https://github.com/angular-ui/ui-ace). 

2 - cleared a bunch of trailing white space from files I was in

Tests Clear:
```
mconlin-mbp:elasticsearch-kopf mconlin$ grunt test
Running "karma:unit" (karma) task
........ snip.....
PhantomJS 1.9.7 (Mac OS X): Executed 24 of 24 SUCCESS (0.169 secs / 0.05 secs)
```