Enable basic guard against basic hacks
Add unit tests
Check for file existence when using LocalDirectoryURIResolver