adding 1 second to minimum timeout so that the user sees at least a 1 second window for REST API expiry
Merge pull request #1751 from lassewesth/minimumtimeout

accounting for rounding when setting minimum REST API timeout