Add a $cachedResource.clear() function that clears the cache

Starting to address #8...