Rewrite method of finding a matching resource class

Find matching resource classes by the following:

- exact Resource::Name match
- Sting match of resource name
- exact class match
- then matching base_class