Issue #413 - Add validation/fallback for payloadStartDate and payloadToBlock...
- Added validations on payLoadToBlock and payLoadStartDate and fallback to defaults to prevent BAD requests
- Refactor code under searchRanges for better readability and make sure the following
- This needed re-testing of the wholes ranges validation and value setting