Fixes for deprecated functions

tomsdev/brackets-typescript-code-intel#13
tomsdev/brackets-typescript-code-intel#10
And maaaybe (not sure) tomsdev/brackets-typescript-code-intel#12
Merge pull request #14 from le717/issue-10-13

 Fixes for deprecated functions