correct resolve inter-module references

I don't believe that you accept my JS changes in the near time, so, I will pull some java related stuff and I hope, java team members will be faster ;)

Problem: We don't support intermodule references properly. Ok — I fixed it partially for JS, but JetPsiReference should be modified. Please review my changes:
1) move resolveToDeclarationPsiElements and descriptorToDeclarations to DescriptorToDeclarationUtil from BindingContextUtils. Reason: it is required and must be used only in idea plugin.
2) we must not use reference binding context to find declaration for descriptor — we should try to find corresponding by module descriptor.

Please note — patch contains only core stuff, because js stuff depends on my 340 commits.