Removed dependency of LanguageManager on DocumentManager.

Recovered defunc tests. Addressed some review comments.

Some tests are still failing (URL Code Hints and JavaScript Code Hints).