Make sure we reset consecutive lockout count.

Fixed a bug where consecutive lockout wouldn't be reset properly.
Add a test for max consecutive lockouts.
Add a commandline option for conescutive lockout delay.

That is, the time between lockouts that should be considered consecutive lockouts.
Show max consecutive lockout settings.