Revert "Correct faulty Chef search query"

This reverts commit 8311869e5b99fecefd567ce3f1ad1cbdf8d5c5c6.

When a role is present on the current node either the node attributes or a
subset are returned depending if section is passed.  Conversely if role is
not present on the current node search_for is called which always returns an
array.  This is inconsistant.  Since it appears the roles should contain the
attributes it doesn't matter which one is return, so the first should suffice.
Update spec tests stub to properly return an array from search_for

Change-Id: I180fe8c6a4d0e31e877b91f8cbad54018ef81049
Remove config_by_role in favor of search_for

config_by_role is only used in once place:
openstack-compute::nova-common. And, in this single place it happens
to return inconsistent results. Now that we have search_for, which
does return consistent results, move this one last config_by_role
call to use that. In the interest of good clean living, I am removing
this code.

Bumping to version 0.4.0

Change-Id: Ib755a5d568008599ee7d663f43716e7fe47251f9
endpoint scheme fix to match default nonssl keystone.conf

Change-Id: I913bfd4826d0b1b4fe9ccb035e525a6f5553bf29