allow dir resource to specify a mapper (for filename mapping)
adapted tests
code formatting, add test for ClosureFilenameMapper, update version in readme.md