* Introduce filters to make redirection more flexible.
* Add unit tests and conform to coding standards.