Time property code duplication removed

Removed duplication, simplified, allowed configuration to be simpler but
making elasticsearch.js source aware of the properties and their
defaults, e.g. from/to vs min/max