Refactor Test::Quattor and add unittests

because it can contain `/` (this now handles absolute paths, and only the `$dirs->{resources}` is stripped (doesn't even need to match). the unescaping below is the find the location of the `.json` output (as the compilation is done in the directory that holds this template).
mind that the function is called `profile_cache_name` not `profile_name` (maybe the variable name is too suggestive?)