rework link rewriting
Rewrite tests wip
use request domain for link-rewriting
2.0.0
check if origin url is string/object
Handle none-set origin
Merge branch 'develop'