Keep http history+2

introduce flag for session history tracking; disable by default.
also twiddling whitespace.
feel free to cherry pick the first commit.