Add a command line option to set the timeout period of an HTTP session

Submitted with help from Kohsuke. This is my first attempt hacking on Java, so apologies if it looks terrible. I can only say that it works under testing.