Refactoring discounts. All links categories are now displayed in admin.
Modified range options validation.
Unexpected fixes to discounts model.