add default for empty value to asNum(), and use a value of 1 for all thr...

...ead settings in auth.

closes #1141