Cleanup - mostly deleting unused code
Some unit test cleanup
Fix timing problem.

Could end up requesting completions before the tern server was initialized.
Use a $.Deferred so that we don't request any hints until we know the server has been initialized.