Add `active` attribute to Resource
Made `active` accessible
Changed `ImportResources` to make old resources inactive