refactor redland implementation; allow env config
avoid Kernel#URI, parse strings, improve perf