Refactor

- use an helper
- use yum cookbook
- use URI to create url
- Fix problem with "name" resource != new_resource.name
- Add a default value for `type`

Based on #2
The only problem I found was here.

`jake-1.0-3.el6.x86_64.rpm` isn't sign, so `yum` fail with `gpgcheck` on.