printf-style debugging
fix build on linux

removing 1st slash was just a bad idea, converting URL to URI allows to
avoid such bad platform-specific behavior
fix directorystream

test is a bit duplicated between provider and fs, since it's only implemented
at fs level moving test there may be a good idea
code format