Initial implementation of building the resolved dependencies in an event-based fashion.
Completely avoided creation of DefaultResolvedDependency during the resolution process. The instances are created only when full graph is requested.
Got rid of some awkward type casting.