Support for ranges and counts for faceted searches

Added changes to support ranges and counts. For now only on net45 to start a discussion/review. Once okay and comments incorporated, can replicate to others. Given that this is my first look at the source code, I committed limited changes, no tests modified yet.