FORGE-1909 refactor resource API

Cleaned up, removed file and directory-based resource classes.
Paths.get could be used instead