Reoptimized the loop detection.
Defined a custom exception to mark breaking of circular redirects.
Changed existing tests, rather than define new ones.
Revert "Added some tests checking the redirect loop detection."

This reverts commit f6b9b08df03d18afc2bbf8dab917a01a29912252.