Replace class dependencies with ensure_resource

This allows the module to co-exist with other uses of its dependencies.

Issue: martasd/puppet-mediawiki#12