Add support for RedHat-based distros.

Now that RHEL6.5 and CentOS6.5 support docker out of the box we can rely on official packages.

This PR adds the missing bits for these distros, making sure that only the distro-specifc parts are modified. I also updated the tests to take distro-specific things into account.

The second and third commits implement features we rely on with our containers.