Assign redirect location reducing object allocs
Merge pull request #35 from splattael/refactor

Tiny refactorings