Add option to set status code on redirect
add additional test for getHandler functionality
removes unused variables
make api compatible to client router
Merge pull request #165 from lusini/allow-redirects-with-301-status-code

Allow redirects with 301 status code