change search_for method to search for roles or recipes

This allows the use of application / role cookbooks when there is
no top level role to query from.

Change-Id: I6df32407c9d56bec1304c7ff8eb2c9618e31493e