Add http#req timeout handling, default timeout changed to 2000 milliseconds.