Refactoring ruby_app recipe config files

Moving logic out of the recipe and into a library