Refactoring dependencies

This PR includes a refactor for handling the dependencies in a cleaner way fixing the problems in https://github.com/tPl0ch/puppet-composer/issues/37 among others.