Custom preferences for number range and steps input.

Also catch number format exceptions in custom study input to avoid
crashing the application.
Deck options XML formatting
Merge pull request #19 from hssm/options-validation

Input validation with custom preferences.