custom redirect logic

follow redirects with POSTs every time, break on redirect loops, trace the redirects in debug log for better diagnosis
("* Location: " + null) == "*Location: null"