Enabled parameter now allows enabled range

Enabled can now be an array of two elements,
each being either a date or an integer.
If first is an integer, represents number of hours since now
If second is an integer, represents the duration (in hours)

Change-Id: I23839878a376e73324384b042e809d668f954308