Smarter dependency resolution for multiple builds.

This patch adds a basic ability to detect intra-build dependencies for SBT projects.
On import, the project's library dependencies are checked to see if there's an existing IDE
module that can satisfy the requirement, and if it is present, a module dependency is swapped in
for the library dependency.