Couple of minor improvements

Added ability to change the name of the managed_hosts data bag.

Added sort to the template rendering, on my system each time chef runs the lines are rendered in different order causing dnsmasq to restart each chef run.  using sort works well to prevent this since the file is rendered the same each run unless there are changes.