resouce stub and url cache

start of a resource class. API class should be aware of it's uri and
and uris of any resource.