Properly install rubygems/activerecord on all platforms

On our debian systems, we don't have rubygems, so we need to install it.
Also, EL5 has Ruby 1.8.5, and thus the activerecord gem won't install,
so we have to use yum to get the version from yum.puppetlabs.com.