new Resolver API, providing module model as a thrid argument in resolve() callback