[entropy.core.settings.base] introduce packages_configuration_hash()

This method serves the purpose of returning a hash of the current
packages configuration (masking, unmasking, keywording, etc).
This will be used by upper layers as part of cache keys generation.