[COOK-4706] Make nameserver search fully configurable

I have added a chef_search attribute. I put it inside the recipe to allow backwards compatibility in case users were overriding the server_role attribute in a wrapper cookbook. I also pulled in some test files from the build-essential cookbook, with a minor fix to the Gemfile to fix a dependency problem.