Supporting different types of template location

- File
- Classpath
- Web Resource

Removed all usages of java.io.File to get the relative paths (only using it for files).