Added simple base url rewriter (closes #128)