adds an extract local variable function to the editor

Hi, 

I am in desperate need of an extract local variable functionality in RStudio at work :) and that's what I did this evening. I really wanted to add some tests, but as far as I can see it the only tests covering the editor are these selenium tests. What's the testing strategy of the project?

Anyways, please review and comment :)

Best,
Dirk