Added foreground option and max tabs limit
Added option to set saved tabs limit

Choice of 10, 20, 30, 40 or infinity (and beyond).