Refactor ChefGraphite::ini_file

Pull out resources_to_hashes as a mixin for better separation of
concerns. ini_file writer is now agnostic of chef resources and uses a
formatted data structure directly with no whitelist concern.