Attempt at manually handling redirects

Titanium fails with redirects on some services. Seems there are bugs in the code. So this is an attempt to handle them manually.