Merge pull request #155 from snosov1/master

use position-bytes function to get the byte offset
Fix issue with function parameter autocomplete being screwed up when contracts are present
Calculate parameter scope in a less stupid way thereby fixing go-to-declaration with parameters
Remove unused parametr
Add --query option to the client so that it can determine if the server can be contacted
Convert spaces to tabs
Much better autocomplete for foreach loops