Add some settings management and also parse the time format.

This allows for: 30seconds, 10minutes, 3hours, or 2days