support $gte and $lte in JSON query
Merge pull request #58 from poga/master

support $gte and $lte in JSON query
* Guard against empty rules/views (@DonaldIsFreak).

  Closes #60