main resource constructor and resolver

Objects to register main resources in the artifact constructor
and objects to construct main resources from compiled resources.