deps: abstract redirects middleware into module. Ref #97