Fix calls to parentDepth in tern.js.

None of the calls to parentDepth passed the server object, meaning parentDepth
always returned 0.

This meant that file parents were not updated as requests from new files came
in, causing a problem for minimal requirements loading in the Closure plugin
(google/tern-closure#22).