Add common method to find a resource

The find_resource_cls method can be used by several commands to
locate a resource.  It may be called with a file name or import
path.

Change-Id: Ia83c9e6c1a9745088c3558bfbef32d4a4ca234b2
Merge "Add common method to find a resource"