Trying to add uiRefresh to uiCodemirror

New uiRefresh attribute to help with rendering bugs as outlined by this code http://pastebin.com/WGsqAnEE

Problem: tests are failing. I'm not sure why and would appreciate some help.

Also, @douglasduteil you should try to fix your commented out unit tests (I will try to help).