Bugfix: Ruby2.0 yaml generation
Refactoring: Relocting yaml converting in lib

Added tests
Merge pull request #314 from fh/t/fix-chef-2

Bugfix: Ruby2.0 yaml generation