Provide an interface for the random string generator

The random string generator `\Drupal\Component\Utility\Random` is currently hardcoded in the project. It would be better if this conformed to an interface so it can be properly injected. This would allow us to override it, and it allow the methods to be autocompleted by IDEs.