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