Fixed url module once again.
Improved logging, added wtf definitions, tweaks.