Split resolve into rustc_resolve.

r? @nikomatsakis