Add node filtering for searches; see COOK-3262

Update code to use an attribute for node searching, whether or not multi_environment_monitoring is set or not.
Add debug info -- to be disabled before reopening PR 168
Also apply filtering to databag hostgroups as well, per gchristensen