Adds ResourceAccessor and its implementation. ResourceAccessor is to
access properties and methods of resource in rumtime.