[CHEF-4559] Dialect support and loading enhancements.

See [CHEF-4559](https://tickets.opscode.com/browse/CHEF-4559) or [the original proposal](https://gist.github.com/coderanger/a6e0c627d349f0712dcc) for more information.