Create Tern request with optionnal pos to manage for instance tern

Patch to create Tern request with optionnal pos to manage for instance tern hover. See demo at
http://codemirror-java.opensagres.eu.cloudbees.net/codemirror-javascript/demo/javascript-all.html