added 2 command-line parameters:

    --http-timeout
    --poll-interval

These default to the previously hard-coded values and can now be
overriden on the command line
I saw flag.Duration was available.  Let me give that a try, it might simplify the parameters passed (from note above).