FORGE-1909 refactor resource API

Cleaned up, removed file and directory-based resource classes.
Resource.isContainet()